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

:root {
  --primary-blue: #2975BC;
  --primary-blue-hover: #1d5a9a;
  --primary-blue-light: #4a90d9;
  --secondary-blue: #6EC1E4;
  --blue-50: #e8f4f8;
  --blue-100: #d1e9f1;
  --blue-600: #2975BC;
  --blue-700: #1d5a9a;
  --blue-800: #155078;

  --primary-green: #2D9B30;
  --primary-green-hover: #224F19;
  --success-color: #23A455;
  --error-color: #CE3131;
  --warning-color: #f59e0b;
  --info-color: #2975BC;

  --text-primary: #26282D;
  --text-secondary: #54595F;
  --text-muted: #7a7a7a;

  --white: #ffffff;
  --gray-50: #f9f9f9;
  --gray-100: #ececec;
  --gray-200: #d8d8d8;
  --gray-300: #c4c4c4;
  --gray-400: #a0a0a0;
  --gray-700: #3c3c3c;
  --gray-800: #26282D;
  --gray-900: #121212;
  --dark-bg: #101213;
  --dark-green: #0E2711;
  --dark-green-hover: #224F19;

  --border-color: #e0e0e0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.15);

  --sidebar-width: 280px;
  --topbar-height: 70px;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

body {
  font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--gray-50);
  min-height: 100vh;
  font-weight: 400;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--white);
}

.auth-card {
  background: var(--dark-green);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 48px;
  max-width: 480px;
  width: 100%;
}

.logo-section {
  text-align: center;
  margin-bottom: 32px;
}

.logo-image {
  max-width: 200px;
  height: auto;
  margin-bottom: 12px;
}

.logo-section h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-card h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-400);
}

.info-text {
  color: var(--gray-400);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
}

.form-group input {
  padding: 16px 16px 20px 16px;
  border: 1px solid var(--gray-700);
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  transition: all 0.3s;
  background: var(--white);
  color: var(--text-primary);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 155, 48, 0.15);
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.error-message {
  color: var(--error-color);
  font-size: 13px;
  display: none;
}

.error-message.show {
  display: block;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-info {
  background: var(--blue-50);
  color: var(--blue-800);
  border: 1px solid var(--blue-100);
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.alert-info svg {
  flex-shrink: 0;
}

.alert-info strong {
  font-weight: 600;
}

.alert-info p {
  margin: 0;
  font-size: 13px;
}

.btn {
  padding: 13px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.3px;
  text-transform: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-green);
  color: white;
  box-shadow: 0 2px 8px rgba(45, 155, 48, 0.25);
  position: relative;
  overflow: hidden;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover:not(:disabled)::before {
  left: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 79, 25, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(45, 155, 48, 0.25);
  transition: all 0.1s ease;
}

.btn-primary:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.btn-secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--primary-green);
  color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(45, 155, 48, 0.15);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.1s ease;
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-400);
}

.auth-footer a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: var(--gray-50);
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--dark-green);
  border-right: 1px solid var(--gray-800);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.3s ease;
}

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

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

.sidebar-logo {
  max-height: 40px;
  width: auto;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-blue);
}

.mobile-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--gray-400);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
  margin-bottom: 4px;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--dark-green-hover);
  color: var(--white);
}

.nav-item.active {
  background: var(--primary-green);
  color: var(--white);
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--gray-800);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--gray-800);
  border-radius: 8px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar svg {
  color: white;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-logout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--error-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  height: var(--topbar-height);
  background: var(--dark-green);
  border-bottom: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 8px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background: var(--gray-800);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-400);
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background: var(--gray-700);
  color: var(--primary-green);
}

.user-profile-dropdown {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--border-radius-md);
  background: var(--gray-800);
  border: 1px solid var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-trigger:hover {
  background: var(--gray-700);
  border-color: var(--primary-green);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--success-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.profile-email {
  font-size: 12px;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.chevron-icon {
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.profile-trigger.active .chevron-icon {
  transform: rotate(180deg);
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
}

.profile-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.dropdown-item:first-child {
  border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 10px 10px;
}

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

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

.dropdown-item:hover svg {
  color: var(--primary-green);
}

.content-area {
  flex: 1;
  padding: 32px;
}

.section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-blue);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: var(--blue-50);
  color: var(--primary-blue);
}

.stat-icon.green {
  background: #e8f5e9;
  color: var(--primary-green);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.card-body {
  padding: 24px;
}

.welcome-content {
  text-align: center;
}

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

.welcome-content h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.welcome-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.info-box {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  text-align: left;
}

.info-box svg {
  color: var(--primary-green);
  flex-shrink: 0;
}

.info-box strong {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.info-box p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s;
}

.action-item:hover {
  background: #e8f5e9;
  border-color: var(--primary-green);
  transform: translateX(4px);
}

.action-item svg {
  color: var(--primary-green);
  flex-shrink: 0;
}

.action-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.action-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.alert-box {
  padding: 16px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
}

.info-alert {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}

.info-alert svg {
  color: var(--primary-blue);
  flex-shrink: 0;
}

.info-alert strong {
  display: block;
  font-weight: 600;
  color: var(--blue-800);
  margin-bottom: 4px;
}

.info-alert p {
  margin: 0;
  font-size: 14px;
  color: var(--blue-800);
}

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

.empty-state svg {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

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

.timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 32px;
  width: 2px;
  height: calc(100% + 8px);
  background: var(--border-color);
}

.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-green);
  border: 4px solid #e8f5e9;
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.timeline-content {
  flex: 1;
}

.timeline-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-time {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.overlay.active {
  display: block;
}

.profile-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
}

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

.profile-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

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

.profile-photo-section {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.photo-preview-container {
  flex-shrink: 0;
}

.photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--success-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-upload-info {
  flex: 1;
}

.photo-upload-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.photo-upload-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.photo-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn-small.btn-primary {
  background: var(--primary-green);
  color: white;
  box-shadow: 0 2px 6px rgba(45, 155, 48, 0.25);
}

.btn-small.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-small.btn-primary:hover::before {
  left: 100%;
}

.btn-small.btn-primary:hover {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(34, 79, 25, 0.3);
}

.btn-small.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(45, 155, 48, 0.25);
  transition: all 0.1s ease;
}

.btn-small.btn-secondary {
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.btn-small.btn-secondary:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
}

.btn-small.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.1s ease;
}

.btn-small:focus {
  outline: none;
}

.btn-small.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(45, 155, 48, 0.2), 0 4px 10px rgba(45, 155, 48, 0.3);
}

.btn-small.btn-secondary:focus {
  box-shadow: 0 0 0 3px rgba(45, 155, 48, 0.1), 0 4px 8px rgba(45, 155, 48, 0.12);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.form-group input[disabled] {
  background: var(--gray-100);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.form-actions .btn-primary {
  position: relative;
  min-width: 160px;
}

.form-actions .btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 155, 48, 0.2), 0 4px 12px rgba(45, 155, 48, 0.3);
}

.form-actions .btn-primary svg {
  transition: transform 0.3s ease;
}

.form-actions .btn-primary:hover svg {
  transform: scale(1.15) rotate(8deg);
}

.form-actions .btn-primary:active svg {
  transform: scale(0.95);
}

.form-actions .btn-secondary {
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-actions .btn-secondary:hover {
  transform: translateY(-2px) scale(1.02);
}

.twofa-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.twofa-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.status-indicator {
  display: flex;
  gap: 16px;
  align-items: center;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.status-disabled {
  background: var(--text-muted);
}

.status-dot.status-enabled {
  background: var(--success-color);
}

.status-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.status-text p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.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: #cbd5e1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 30px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:hover {
  background-color: #94a3b8;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary-green);
  box-shadow: 0 2px 8px rgba(45, 155, 48, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
  box-shadow: 0 3px 10px rgba(45, 155, 48, 0.4);
}

.toggle-switch input:focus + .toggle-slider {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.twofa-setup {
  padding: 24px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.twofa-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.twofa-step {
  display: flex;
  gap: 20px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.qr-code-placeholder {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  color: var(--text-muted);
}

.qr-code-container p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.qr-code-container code {
  background: var(--gray-100);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--primary-green);
  font-weight: 600;
}

.verify-form {
  display: flex;
  gap: 12px;
  max-width: 400px;
}

.verify-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 18px;
  text-align: center;
  letter-spacing: 8px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.verify-form .btn-primary {
  min-width: 160px;
  background: var(--primary-green);
  box-shadow: 0 2px 8px rgba(45, 155, 48, 0.25);
  border: none;
}

.verify-form .btn-primary:hover {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 79, 25, 0.3);
}

.verify-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(45, 155, 48, 0.25);
}

.twofa-disable {
  padding: 24px;
  background: var(--gray-50);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alert {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid;
}

.alert-warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.alert svg {
  flex-shrink: 0;
  color: #f59e0b;
}

.alert strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.alert p {
  font-size: 14px;
  margin: 0;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35), 0 2px 4px rgba(239, 68, 68, 0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-danger:hover::before {
  left: 100%;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45), 0 3px 6px rgba(239, 68, 68, 0.3);
}

.btn-danger:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  transition: all 0.1s ease;
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-close {
    display: flex;
  }

  .top-bar {
    padding: 0 16px;
  }

  .page-title {
    font-size: 20px;
  }

  .profile-info {
    display: none;
  }

  .profile-name,
  .profile-email {
    display: none;
  }

  .content-area {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .overview-table .table-label {
    font-size: 12px;
    padding: 14px 16px;
    width: 40%;
  }

  .overview-table .table-value {
    font-size: 14px;
    padding: 14px 16px;
  }

  .dashboard-table {
    font-size: 13px;
  }

  .dashboard-table th {
    font-size: 11px;
    padding: 14px 16px;
  }

  .dashboard-table td {
    font-size: 13px;
    padding: 16px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .profile-card {
    padding: 24px 16px;
  }

  .profile-photo-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .photo-actions {
    justify-content: center;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary {
    width: 100%;
  }

  .twofa-step {
    flex-direction: column;
  }

  .step-number {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .action-item {
    flex-direction: column;
    text-align: center;
  }

  .dashboard-table th {
    font-size: 10px;
    padding: 12px 10px;
    letter-spacing: 0.5px;
  }

  .dashboard-table td {
    font-size: 12px;
    padding: 14px 10px;
  }
}

.table-container {
  overflow-x: auto;
  margin-top: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.data-table thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--border-color);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-primary);
}

.data-table tbody tr {
  transition: background-color 0.2s;
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.badge-live,
.badge-active {
  background: #d1fae5;
  color: #065f46;
}

.badge-cancelled,
.badge-expired {
  background: #fee2e2;
  color: #991b1b;
}

.badge-paused {
  background: #fef3c7;
  color: #92400e;
}

.badge-paid {
  background: #d1fae5;
  color: #065f46;
}

.badge-unpaid {
  background: #fef3c7;
  color: #92400e;
}

.badge-overdue {
  background: #fee2e2;
  color: #991b1b;
}

.badge-void {
  background: var(--gray-200);
  color: var(--gray-700);
}

.overview-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.overview-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

.overview-table tbody tr:last-child {
  border-bottom: none;
}

.overview-table tbody tr:hover {
  background: var(--gray-50);
}

.overview-table .table-label {
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 35%;
  vertical-align: middle;
}

.overview-table .table-value {
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  vertical-align: middle;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.dashboard-table thead {
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-color);
}

.dashboard-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.dashboard-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  vertical-align: middle;
}

.dashboard-table tbody tr {
  transition: background-color 0.2s ease;
}

.dashboard-table tbody tr:hover {
  background: var(--gray-50);
}

.dashboard-table tbody tr:last-child td {
  border-bottom: none;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 8px;
  margin-bottom: 24px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-select,
.filter-input {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background: var(--white);
  color: var(--text-primary);
  transition: all 0.2s;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 155, 48, 0.1);
}

.loading-skeleton {
  padding: 24px 0;
}

.skeleton-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-row {
  height: 48px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

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

.error-state svg {
  color: var(--error-color);
  margin-bottom: 16px;
}

.error-state h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.error-state p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.action-btn {
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
  border-radius: var(--border-radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.action-btn:hover {
  background: var(--primary-green);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(45, 155, 48, 0.2);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.pagination button {
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination button.active {
  background: var(--primary-green);
  color: white;
  border-color: var(--primary-green);
}

.pagination-info {
  font-size: 14px;
  color: var(--text-secondary);
}

.subscription-card {
  background: var(--white);
  border-radius: 12px;
  padding: 0;
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--gray-50);
  border-radius: 12px 12px 0 0;
}

.subscription-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.plan-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.subscription-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.subscription-id label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.subscription-id span {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.subscription-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subscription-field label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subscription-field .field-value {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
}

.subscription-items {
  padding: 24px;
}

.subscription-items > label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 16px;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-card {
  background: var(--gray-50);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.item-card:hover {
  background: #e8f5e9;
  border-color: var(--primary-green);
}

.item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.item-details {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.item-details span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .filters-bar {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

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

  .subscription-id {
    align-items: flex-start;
  }

  .subscription-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .item-details {
    width: 100%;
    justify-content: space-between;
  }
}

.table-container {
  width: 100%;
  overflow-x: auto;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-top: 24px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.history-table thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--border-color);
}

.history-table th {
  text-align: left;
  padding: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.history-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.history-table tbody tr:last-child td {
  border-bottom: none;
}

.history-table tbody tr:hover {
  background: var(--gray-50);
  transition: background 0.2s ease;
}

.active-session {
  color: var(--success-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-session::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success-color);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.no-data {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 16px;
}

@media (max-width: 768px) {
  .history-table {
    font-size: 13px;
  }

  .history-table thead {
    display: none;
  }

  .history-table tbody tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
  }

  .history-table td {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
  }

  .history-table td:last-child {
    border-bottom: none;
  }

  .history-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-primary);
  }

  .history-table tbody tr:hover {
    background: white;
  }
}
