/* Modern Dashboard Styles - Rage Accounts Profile Management */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #0a5340;
  --primary-hover: #084030;
  --secondary-color: #9ca3af;
  --background: #111827;
  --surface: #1f2937;
  --border-color: #374151;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --sidebar-width: 260px;
  --header-height: 64px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--background);
}

/* Dashboard Header */
.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.2s;
}

.sidebar-toggle:hover {
  background: var(--background);
  color: var(--text-primary);
}

.dashboard-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.dashboard-title-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.dashboard-version {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* User Menu */
.user-menu-container {
  position: relative;
}

.user-menu-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border-color);
  padding: 6px 12px 6px 6px;
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-primary);
}

.user-menu-button:hover {
  background: var(--background);
  border-color: var(--text-secondary);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
}

.dropdown-icon {
  transition: transform 0.2s;
}

.user-menu-button:hover .dropdown-icon {
  transform: translateY(1px);
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--background);
}

.user-dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-dropdown-info {
  flex: 1;
}

.user-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.user-dropdown-email {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Hide user ID on mobile screens */
@media (max-width: 768px) {
  .user-dropdown-email {
    display: none;
  }
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
}

.user-dropdown-item:hover {
  background: var(--background);
}

.user-dropdown-item svg {
  color: var(--text-secondary);
}

/* Dashboard Body */
.dashboard-body {
  display: flex;
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border-color);
  padding: 24px 0;
  position: fixed;
  left: 0;
  top: var(--header-height);
  bottom: 0;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-section {
  padding: 0 16px;
}

.sidebar-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding: 0 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-link:hover {
  background: var(--background);
}

.sidebar-link.active {
  background: #e8f0fe;
  color: var(--primary-color);
}

.sidebar-link svg {
  color: var(--text-secondary);
}

.sidebar-link.active svg {
  color: var(--primary-color);
}

/* Main Content Area */
.dashboard-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  max-width: 1400px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .sidebar-toggle {
    display: block;
  }

  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.show {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .dashboard-main {
    margin-left: 0;
    padding: 24px 16px;
  }

  .user-name {
    display: none;
  }
}

@media (max-width: 640px) {
  .dashboard-header {
    padding: 0 16px;
  }

  .dashboard-title {
    font-size: 16px;
  }

  .dashboard-logo {
    width: 32px;
    height: 32px;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 54, 93, 0.98);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  color: white;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-accept-btn {
  background: #00c896;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie-accept-btn:hover {
  background: #00b587;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 200, 150, 0.3);
}

.cookie-accept-btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .cookie-accept-btn {
    width: 100%;
  }
}

/* Profile Page Styles - Google MyAccount Inspired */

.profile-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
  background: transparent;
}

.profile-header {
  margin-bottom: 48px;
}

.profile-header h1 {
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.profile-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
}

.profile-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-card {
  background: var(--surface);
  border-radius: 0;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.2s ease;
}

.profile-card:hover {
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.card-header-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Generic color variants for card icons */
.card-icon.blue {
  background: #e8f0fe;
  color: #1967d2;
}

.card-icon.red {
  background: #fce8e6;
  color: #d93025;
}

.card-icon.green {
  background: #e8f5e9;
  color: #34a853;
}

.card-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

/* Legacy class names for backwards compatibility */
.personal-info-icon {
  background: #e8f0fe;
  color: #1967d2;
}

.contact-info-icon {
  background: #fce8e6;
  color: #d93025;
}

.password-icon {
  background: #e8f5e9;
  color: #34a853;
}

.passkey-icon {
  background: #f3e8ff;
  color: #9333ea;
}

.success-icon {
  background: #e8f5e9;
  color: #34a853;
}

.card-title-group h2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.card-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.btn-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #10b981;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-edit:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.btn-edit svg {
  width: 16px;
  height: 16px;
}

.card-body {
  padding: 24px;
}

.info-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 400;
}

/* Profile Form Styles */
.profile-card .form-group {
  margin-bottom: 20px;
}

.profile-card .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.profile-card .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 16px;
  color: #202124;
  transition: all 0.2s ease;
  font-family: inherit;
}

.profile-card .form-group input:focus {
  outline: none;
  border-color: #1967d2;
  box-shadow: 0 0 0 4px rgba(25, 103, 210, 0.1);
}

.profile-card .form-group input:disabled {
  background: #f8f9fa;
  color: #80868b;
  cursor: not-allowed;
}

.profile-card .button-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.profile-card .btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: #10b981;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-card .btn-secondary:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.profile-card .btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.profile-card .btn-primary {
  background: #10b981;
  border: none;
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-card .btn-primary:hover:not(:disabled) {
  background: #059669;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.profile-card .btn-primary:disabled {
  background: #6b7280;
  cursor: not-allowed;
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
  .profile-container {
    padding: 24px 16px;
  }

  .profile-header h1 {
    font-size: 24px;
  }

  .profile-subtitle {
    font-size: 14px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .btn-edit {
    align-self: flex-end;
  }

  .card-body {
    padding: 20px;
  }

  .profile-card .button-group {
    flex-direction: column-reverse;
  }

  .profile-card .button-group button {
    width: 100%;
  }
}

/* Provider Icons for Linked Accounts */
.google-icon {
  background: #e8f0fe;
  color: white;
}

.microsoft-icon {
  background: #e8f0fe;
  color: white;
}

.github-icon {
  background: #333;
  color: white;
}

.facebook-icon {
  background: #1877f2;
  color: white;
}

.linked-accounts-icon {
  background: #fbbc04;
  color: white;
}

/* Linked Accounts Styles */
.accounts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.account-card:hover {
  background: #f1f3f4;
}

.account-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.account-provider-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-email {
  font-size: 15px;
  color: #202124;
  font-weight: 500;
}

.account-linked-date {
  font-size: 13px;
  color: #5f6368;
}

.btn-unlink {
  background: transparent;
  border: 1px solid #dadce0;
  color: #d93025;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unlink:hover:not(:disabled) {
  background: #fce8e6;
  border-color: #d93025;
}

.btn-unlink:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #80868b;
  border-color: #dadce0;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #80868b;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin: 0 0 8px 0;
}

.empty-state p {
  font-size: 14px;
  color: #5f6368;
  margin: 0;
}

/* Home Page Styles - Unauthenticated */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.home-hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 0;
  color: var(--text-primary);
  margin-bottom: 60px;
}

.home-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.home-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.home-subtitle {
  font-size: 20px;
  font-weight: 400;
  margin: 0;
  opacity: 0.95;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.home-feature-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.home-feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.home-feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.home-feature-icon.security-icon {
  color: #1967d2;
}

.home-feature-icon.passkey-icon {
  color: #9333ea;
}

.home-feature-icon.accounts-icon {
  color: #0f9d58;
}

.home-feature-icon.privacy-icon {
  color: #f4b400;
}

.home-feature-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.home-feature-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.home-cta {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.home-cta h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.home-cta p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
}

/* Login Menu Styles - Unauthenticated */
.login-menu-container {
  position: relative;
}

.login-menu-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.login-menu-button:hover {
  background: var(--primary-hover);
}

.login-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
}

.login-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  color: var(--text-primary);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
}

.login-dropdown-item:last-child {
  border-bottom: none;
}

.login-dropdown-item:hover {
  background: var(--background);
}

.login-dropdown-item svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .home-title {
    font-size: 36px;
  }

  .home-subtitle {
    font-size: 18px;
  }

  .home-features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .home-cta h2 {
    font-size: 24px;
  }

  .home-cta p {
    font-size: 16px;
  }
}

/* Success Notification - Slide Down */
.success-notification {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  z-index: 9999;
  background: #10b981;
  color: white;
  padding: 16px 24px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 500px;
  animation: slideDown 0.3s ease-out forwards;
}

.success-notification.hiding {
  animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideDown {
  to {
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(0);
  }
  to {
    transform: translateX(-50%) translateY(-100%);
  }
}

.success-notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-notification-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}

.success-notification-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.success-notification-close:hover {
  opacity: 1;
}

/* Error Banner */
.error-banner {
  background: #ef4444;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.error-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.error-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.error-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.error-title {
  font-weight: 600;
  font-size: 14px;
}

.error-message {
  font-size: 14px;
  opacity: 0.95;
}

.error-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.error-close:hover {
  opacity: 1;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 480px;
  width: 90%;
  animation: slideInModal 0.3s ease-out;
}

@keyframes slideInModal {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--background);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 24px 24px;
}

.modal-footer button {
  min-width: 100px;
}

/* Preferences Styles */
.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.preference-row:last-child {
  border-bottom: none;
}

.preference-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.info-description {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
}

.preference-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #374151;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}
