html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background: #f8f5ff;
  color: #211633;
  margin-bottom: 60px;
}

.navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px);
}

.app-brand {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
}

.app-brand img {
  height: 32px;
  width: auto;
}

.footer {
  background: #fff;
  bottom: 0;
  line-height: 60px;
  position: absolute;
  width: 100%;
}

/* Landing / hero */
.hero-panel {
  align-items: center;
  background: linear-gradient(135deg, #3a1c71, #6d4aff 52%, #a45cf5);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(80, 49, 160, 0.25);
  color: #fff;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 1.25rem 0 2rem;
  padding: 2.5rem;
}

.hero-panel h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 760px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  margin: 1rem 0 0;
  max-width: 640px;
}

.eyebrow {
  color: #7c3aed;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.hero-panel .eyebrow {
  color: #f8e7ff;
}

.hero-panel .btn {
  background: #fff;
  border: none;
  color: #4c1d95;
  font-weight: 700;
  min-width: 170px;
}

/* List strip & pills */
.top-strip {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(92, 62, 160, 0.14);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(72, 48, 120, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 auto 1rem;
  max-width: 1200px;
  padding: 0.65rem 0.85rem;
}

.top-strip-title {
  align-items: center;
  color: #2e1065;
  display: inline-flex;
  font-weight: 800;
  gap: 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.top-strip-title:hover {
  color: #5b21b6;
}

.strip-icon {
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  border-radius: 10px;
  display: inline-block;
  height: 2rem;
  width: 2rem;
}

.list-pills {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.list-pill {
  align-items: center;
  border: 1px solid #e9e9ef;
  border-radius: 999px;
  color: #4b3a6b;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.list-pill:hover {
  border-color: #c4b5fd;
  color: #5b21b6;
}

.list-pill.active {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #4c1d95;
}

.list-pill.owned-list.dragging {
  opacity: 0.55;
}

.more-button {
  background: #f4f0ff;
  border: 1px solid #e9e9ef;
  border-radius: 12px;
  color: #5b21b6;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.more-button:hover {
  background: #ede9fe;
}

/* Page toolbar */
.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 0 auto 1rem;
  max-width: 1200px;
}

.page-actions-left,
.page-actions-right {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.inline-form {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  max-width: 100%;
  width: fit-content;
}

/* Bootstrap .form-control width:100% tek satırda butonu alta iter; yan yana için genişliği sıkıştır */
.inline-form .form-control {
  flex: 1 1 10rem;
  max-width: 220px;
  min-width: 8rem;
  width: auto;
}

/* Search */
.search-panel {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 auto 1.25rem;
  max-width: 1200px;
}

.search-panel .form-control-lg {
  flex: 1;
  min-width: 200px;
}

.filter-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-button {
  background: #fff;
  border: 1px solid #e9e9ef;
  border-radius: 999px;
  color: #5b4b75;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
}

.filter-button:hover {
  border-color: #c4b5fd;
}

.filter-button.active {
  background: #ede9fe;
  border-color: #a78bfa;
  color: #4c1d95;
}

#searchCount {
  color: #6b5c83;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Meeting board */
.meeting-board {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin: 0 auto;
  max-width: 1200px;
}

.meeting-card {
  background: #fff;
  border: 1px solid rgba(92, 62, 160, 0.14);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(72, 48, 120, 0.12);
  cursor: grab;
  padding: 1rem;
  position: relative;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.meeting-card:hover {
  box-shadow: 0 18px 44px rgba(72, 48, 120, 0.18);
  transform: translateY(-3px);
}

.meeting-card.dragging {
  cursor: grabbing;
  opacity: 0.45;
  transform: scale(0.98);
}

.card-drag-handle {
  color: #a78bfa;
  cursor: grab;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 0.25rem;
  user-select: none;
}

.meeting-card-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meeting-card-header.card-link {
  color: inherit;
  text-decoration: none;
}

.meeting-card-header.card-link:hover h2 {
  color: #5b21b6;
}

.meeting-card h2 {
  color: #2e1065;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.meeting-card-subject {
  color: #5b4d78;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.meeting-card-header span {
  color: #7c6f95;
  font-size: 0.85rem;
  font-weight: 700;
}

.meeting-card-header small {
  color: #9333ea;
  font-size: 0.78rem;
  font-weight: 700;
}

.meeting-meta {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.meeting-meta div {
  background: #f5f0ff;
  border-radius: 14px;
  padding: 0.75rem;
}

.meeting-meta dt,
.meeting-section strong {
  color: #5b21b6;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-meta dd,
.meeting-section p {
  color: #34234d;
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
}

.meeting-section {
  border-top: 1px solid #eee8ff;
  padding-top: 0.85rem;
}

.decision-section {
  margin-top: 0.85rem;
}

.meeting-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.icon-button {
  align-items: center;
  background: #f8f5ff;
  border: 1px solid #e9e9ef;
  border-radius: 12px;
  color: #5b21b6;
  cursor: pointer;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  padding: 0;
  width: 2.35rem;
}

.icon-button:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
}

.icon-button.danger {
  color: #b91c1c;
}

.icon-button.danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.line-icon {
  display: inline-block;
  height: 1rem;
  position: relative;
  width: 1rem;
}

.lock-icon::before {
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  content: "";
  height: 0.45rem;
  left: 50%;
  position: absolute;
  top: 0.1rem;
  transform: translateX(-50%);
  width: 0.55rem;
}

.lock-icon::after {
  border: 2px solid currentColor;
  border-radius: 2px;
  content: "";
  height: 0.45rem;
  left: 50%;
  position: absolute;
  top: 0.45rem;
  transform: translateX(-50%);
  width: 0.65rem;
}

.shared-icon::before,
.shared-icon::after {
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 0.45rem;
  position: absolute;
  width: 0.45rem;
}

.shared-icon::before {
  left: 0;
  top: 0.15rem;
}

.shared-icon::after {
  left: 0.35rem;
  top: 0.35rem;
}

.file-icon::before {
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
  height: 0.75rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.55rem;
}

.archive-icon::before {
  border: 2px solid currentColor;
  border-radius: 2px;
  content: "";
  height: 0.55rem;
  left: 50%;
  position: absolute;
  top: 0.2rem;
  transform: translateX(-50%);
  width: 0.75rem;
}

.restore-icon::before {
  border: 2px solid currentColor;
  border-right: none;
  border-top: none;
  content: "";
  height: 0.45rem;
  left: 0.25rem;
  position: absolute;
  top: 0.35rem;
  transform: rotate(45deg);
  width: 0.45rem;
}

.delete-icon::before,
.delete-icon::after {
  background: currentColor;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  width: 0.75rem;
}

.delete-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.delete-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.empty-state {
  background: #fff;
  border: 2px dashed #c4b5fd;
  border-radius: 24px;
  color: #5b4b75;
  margin: 0 auto;
  max-width: 1200px;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-state h2 {
  color: #3b0764;
  font-weight: 800;
}

/* Cards: detail, form, login */
.detail-shell,
.form-card,
.login-card {
  background: #fff;
  border: 1px solid rgba(92, 62, 160, 0.14);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(72, 48, 120, 0.12);
  margin: 1.5rem auto;
  max-width: 960px;
  padding: 2rem;
}

.login-card {
  margin: 3rem auto;
  max-width: 440px;
}

.detail-actions,
.form-card-header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.detail-action-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-shell h1,
.form-card h1,
.login-card h1 {
  color: #2e1065;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.detail-subject-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: baseline;
  margin: 0.4rem 0 0.1rem;
  max-width: 52rem;
}

.detail-subject-label {
  color: #7c6f95;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-subject-text {
  color: #433862;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
}

.detail-date {
  color: #6b5c83;
  font-size: 1.1rem;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.detail-grid section {
  background: #f8f5ff;
  border-radius: 18px;
  padding: 1rem;
}

.detail-grid strong {
  color: #5b21b6;
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-grid p {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
}

.attachment-panel {
  border-top: 1px solid #e9e9ef;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.attachment-header h2 {
  color: #2e1065;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.attachment-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
}

.attachment-item {
  align-items: center;
  background: #f8f8fa;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  color: #27272a;
  display: flex;
  gap: 0.75rem;
  padding: 0.8rem;
  text-decoration: none;
}

.attachment-item:hover {
  border-color: #c4b5fd;
}

.attachment-item small,
.attachment-empty {
  color: #71717a;
}

.attachment-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.attachment-form .form-control {
  flex: 1;
  min-width: 180px;
}

/* Chat — WhatsApp benzeri (beyaz alan, kendi mesajı #dcf8c6) */
.chat-panel {
  background: #fff;
  border: 1px solid rgba(92, 62, 160, 0.14);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(72, 48, 120, 0.12);
  margin: 1.5rem auto 3rem;
  max-width: 960px;
  padding: 1.25rem 1.25rem 1rem;
}

.chat-header {
  margin-bottom: 0.75rem;
}

.chat-list {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  max-height: 460px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.5rem 0.25rem;
}

.chat-empty {
  color: #71717a;
  font-size: 0.95rem;
  padding: 1rem 0.5rem;
  text-align: center;
}

.chat-date-separator {
  align-self: center;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  color: #555;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0.65rem 0;
  padding: 0.25rem 0.75rem;
}

.chat-row {
  display: flex;
  margin-bottom: 0.15rem;
  width: 100%;
}

.chat-row-other {
  justify-content: flex-start;
}

.chat-row-own {
  justify-content: flex-end;
}

.chat-bubble {
  border-radius: 12px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  max-width: 82%;
  padding: 0.35rem 0.55rem 0.3rem;
  position: relative;
  word-wrap: break-word;
}

/* Hafif “kuyruk” hissi — dış üst köşe */
.chat-bubble-other {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top-left-radius: 4px;
  color: #111;
}

.chat-bubble-own {
  background: #dcf8c6;
  border-top-right-radius: 4px;
  color: #111;
}

.chat-bubble-sender {
  color: #6b21a8;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.chat-bubble-text {
  font-size: 0.92rem;
  line-height: 1.35;
  margin: 0;
  white-space: pre-wrap;
}

.chat-bubble-footer {
  align-items: center;
  display: flex;
  gap: 0.2rem;
  justify-content: flex-end;
  margin-top: 0.1rem;
}

.chat-bubble-time {
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.68rem;
  white-space: nowrap;
}

.chat-bubble-ticks {
  color: #53bdeb;
  font-size: 0.72rem;
  letter-spacing: -0.12em;
  line-height: 1;
}

.chat-compose {
  background: #f0f0f0;
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
}

.chat-form {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
}

.chat-compose-input {
  background: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: none;
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.85rem;
}

.chat-compose-input:focus {
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.35);
}

.chat-send-btn {
  align-items: center;
  background: #25d366;
  border: none;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1rem;
  height: 2.65rem;
  justify-content: center;
  line-height: 1;
  width: 2.65rem;
}

.chat-send-btn:hover {
  background: #20bd5a;
  color: #fff;
}

/* Toplantı detay — üç nokta menü */
.detail-more-menu .detail-more-toggle {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  min-width: 2.35rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.modal-content {
  border: none;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(31, 16, 74, 0.28);
}

.modal-header,
.modal-footer {
  border-color: #eee8ff;
}

@media (max-width: 768px) {
  .hero-panel {
    align-items: stretch;
    flex-direction: column;
    padding: 1.5rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .chat-bubble {
    max-width: 92%;
  }
}

@media print {
  .no-print,
  .detail-more-menu,
  .navbar,
  .footer,
  .top-strip,
  .page-actions,
  .search-panel {
    display: none !important;
  }

  body {
    background: #fff;
    margin: 0;
  }

  .detail-shell,
  .chat-panel {
    border: none;
    box-shadow: none;
    margin: 0;
    max-width: none;
    padding: 0;
  }
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}
