@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* SF UI Display Font Definitions */
@font-face {
  font-family: "SF UI Display";
  src: url("/fonts/SFUIDisplay/SFUIDisplay-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "SF UI Display";
  src: url("/fonts/SFUIDisplay/SFUIDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "SF UI Display";
  src: url("/fonts/SFUIDisplay/SFUIDisplay-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "SF UI Display";
  src: url("/fonts/SFUIDisplay/SFUIDisplay-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "SF UI Display";
  src: url("/fonts/SFUIDisplay/SFUIDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

a {
  text-decoration: none;
}

/* Master Admin Dashboard Specific Styles */

/* Base Styles */
html,
body {
  height: 100% !important;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 64px;
  /* Add space for fixed navbar */
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #ffffff;
  color: #333333;
  font-weight: 400;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* Remove body padding for shop admin login */
body.shop-admin-login {
  padding-top: 0 !important;
}

/* Remove body padding for master admin login */
body.master-admin-login {
  padding-top: 0 !important;
}

/* Navigation Styles */
.navbar {
  height: 64px !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 24px !important;
  border-bottom: 1px solid #e5e7eb !important;
  width: 100% !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  overflow: visible;
  position: relative;
  height: 64px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  color: #333333;
  cursor: pointer;
  padding: 8px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  height: 64px;
  padding: 0;
}

.logo img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: all 0.2s ease;
}

.master-nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  height: 64px;
}

.master-nav-menu a {
  text-decoration: none;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  border-radius: 8px;
  transition: all 0.2s ease;
  height: 44px;
  box-sizing: border-box;
}

.master-nav-menu a i {
  margin: 0;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.master-nav-menu a i.fa-chevron-up {
  transform: rotate(180deg);
}

.master-nav-menu a:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.master-nav-menu a.active {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.12);
  font-weight: 600;
}

.master-nav-menu li {
  position: relative;
}

.master-nav-menu .dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2px);
  transition: all 0.3s ease;
  z-index: 1002;
  display: none;
  pointer-events: none;
  white-space: nowrap;
  padding: 8px;
  overflow: hidden;
}

/* Add invisible bridge to prevent dropdown from disappearing */
.master-nav-menu .dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

/* Hover-based dropdown functionality for desktop */
.master-nav-menu li:hover .dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
  pointer-events: auto !important;
  transition-delay: 0s !important;
}

/* Add delay when leaving hover state */
.master-nav-menu li .dropdown {
  transition: all 0.3s ease, opacity 0.3s ease 0.5s, visibility 0.3s ease 0.5s !important;
}

.master-nav-menu li:hover .dropdown {
  transition: all 0.3s ease, opacity 0.3s ease 0s, visibility 0.3s ease 0s !important;
}

/* Mobile dropdown functionality (click-based) */
@media (max-width: 768px) {
  .master-nav-menu li:hover .dropdown {
    opacity: 0;
    visibility: hidden;
    display: none;
  }

  .master-nav-menu li.master-nav-dropdown-active .dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    pointer-events: auto !important;
  }
}


.dropdown a {
  padding: 10px 12px;
  display: block;
  color: #374151;
  font-size: 14px;
  border-radius: 6px;
  margin: 2px 0;
  transition: all 0.2s ease;
}

.dropdown-header {
  padding: 12px 12px 8px 12px;
  font-weight: 600;
  color: #1f2937;
  font-size: 13px;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 8px 0;
}

.dropdown a:hover {
  background: #f3f4f6;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding-right: 4px;
}

.profile-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  position: relative;
  border: 2px solid #e5e7eb;
  transition: all 0.2s ease;
}

.profile-circle:hover {
  border-color: #2563eb;
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  overflow: hidden;
}

.profile-circle.active .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-dropdown a {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #374151;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.profile-dropdown a i {
  color: #666666;
  width: 16px;
}

.profile-dropdown a:hover {
  background: #f3f4f6;
}

.profile-dropdown .logout {
  color: #e53e3e;
}

.profile-dropdown .logout i {
  color: #e53e3e;
}

/* Logout Button Styles */
.logout-btn {
  background: none;
  border: none;
  color: #e53e3e;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.logout-btn:hover {
  background-color: #fef2f2;
  color: #dc2626;
  transform: translateY(-1px);
}

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

.logout-btn i {
  font-size: 16px;
}

/* Logout Modal Styles */
.logout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

.logout-modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 400px;
  width: 90%;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logout-modal-content button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.logout-modal-content button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logout-modal-content button:active {
  transform: translateY(0);
}

.btn-cancel {
  background-color: #f3f4f6 !important;
  color: #374151 !important;
}

.btn-cancel:hover {
  background-color: #e5e7eb !important;
}

.btn-confirm {
  background-color: #e53e3e !important;
  color: white !important;
}

.btn-confirm:hover {
  background-color: #dc2626 !important;
}

.btn-confirm:disabled {
  background-color: #9ca3af !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-top: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }

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

  .nav-menu li {
    border-bottom: 1px solid #e5e7eb;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu a {
    padding: 15px 20px;
    border-radius: 0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8f8f8;
    display: none;
  }

  .nav-menu li.active .dropdown {
    opacity: 1;
    visibility: visible;
    display: block;
  }

  .dropdown a {
    padding: 0px 0px;
    font-size: 14px;
  }

  .dropdown-header {
    padding: 15px 30px;
    font-size: 14px;
  }
}

/* Main Container Layout */
.main-container.master-stats {
  width: 80%;
  max-width: 1400px;
  margin: 40px auto 2rem;
  display: flex;
  gap: 2rem;
  padding: 0 1rem;
  flex: 1 0 auto;
}

.left-column {
  width: 30%;
}

.right-column {
  width: 70%;
}

/* Card Styles */
.card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #ffffff;
}

.card-header {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333333;
  font-family: "Montserrat", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-all-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Chart and Activity Styles */
.chart-container {
  height: 250px;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
}

.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.activity-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007AFF;
  font-size: 14px;
  flex-shrink: 0;
}

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

.activity-text {
  font-size: 14px;
  color: #333333;
  margin-bottom: 2px;
  line-height: 1.4;
}

.activity-time {
  font-size: 12px;
  color: #666666;
}

/* Profile Card */
.profile-card {
  text-align: center;
}

.large-profile {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333333;
}

.profile-role {
  color: #666666;
  margin-bottom: 15px;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Profile card button specific styling to prevent overflow */
.profile-card .btn-outline {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Overview List */
.overview-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #333333;
  font-size: 14px;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 8px 0;
}

.overview-item.featured {
  background: rgba(0, 0, 0, 0.05);
  margin: 5px -10px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  font-size: 15px;
}

/* Master stats specific overrides */
.master-stats .overview-item {
  justify-content: space-between;
  align-items: center;
}

.master-stats .overview-item .item-name {
  font-weight: 500;
}

.master-stats .overview-item .item-value {
  font-weight: 600;
}

.overview-item .item-name {
  flex: 1;
  color: #333333;
  font-weight: 500;
}

.overview-item .item-value {
  color: #666666;
  font-weight: 600;
  margin-left: auto;
}

.badge-revenue {
  border-radius: 16px;
  font-weight: 500;
  margin-right: 10px;
}

/* Button Styles */
.btn-outline {
  padding: 12px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #333333;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-decoration: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-outline.btn-sm {
  padding: 10px 14px;
  font-size: 13px;
  gap: 4px;
}

/* Back to Dashboard button styling */
.btn-back-dashboard {
  padding: 10px 16px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
}

.btn-back-dashboard:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.btn-back-dashboard i {
  font-size: 12px;
}

.btn-outline:hover {
  background: #f8f8f8;
  border-color: #2563eb;
  color: #2563eb;
  border-bottom: 1px solid #2563eb;
}

.btn-primary {
  padding: 14px 18px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary.btn-sm {
  padding: 10px 14px;
  font-size: 13px;
  gap: 4px;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-bottom: none;
}

/* Success button styles */
.btn-success {
  padding: 14px 18px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-success.btn-sm {
  padding: 10px 14px;
  font-size: 13px;
  gap: 4px;
}

.btn-success:hover {
  background-color: #218838;
  border-bottom: none;
}

/* Warning button styles */
.btn-warning {
  padding: 14px 18px;
  background-color: #ffc107;
  color: #212529;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-warning.btn-sm {
  padding: 10px 14px;
  font-size: 13px;
  gap: 4px;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-bottom: none;
}

/* Danger button styles */
.btn-danger {
  padding: 14px 18px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "SF UI Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-danger.btn-sm {
  padding: 10px 14px;
  font-size: 13px;
  gap: 4px;
}

.btn-danger:hover {
  background-color: #c82333;
  border-bottom: none;
}

/* Button group styles */
.btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Icon button variations */
.btn-icon.btn-sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.btn-icon.btn-lg {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

/* Icon Button Styles */
.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: #f8f8f8;
  color: #2563eb;
  border-color: #2563eb;
  border-bottom: 1px solid #2563eb;
}

/* Data Table Styles */
.table-responsive {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.desktop-table {
  display: block;
}

.mobile-cards {
  display: none;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
  color: #000000;
  border-bottom: 2px solid #e5e7eb;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
  color: #000000;
  vertical-align: middle;
  font-size: 0.95rem;
}

.data-table tbody tr:hover {
  background-color: #f5f7fa;
}

.data-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.data-table tbody tr:nth-child(even):hover {
  background-color: #f0f0f0;
}

/* Status Badge Styles */
.status-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  min-width: 60px;
}

.status-active {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-suspended {
  background: #f8d7da;
  color: #721c24;
}

.status-inactive {
  background: #f8f9fa;
  color: #6c757d;
}

/* Mobile Card Styles */
.mobile-cards {
  display: none;
}

.mobile-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.mobile-card-header {
  padding: 15px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.mobile-card-body {
  padding: 15px;
}

.mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mobile-card-row:last-child {
  margin-bottom: 0;
}

.mobile-label {
  font-weight: 600;
  color: #666666;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-value {
  font-weight: 500;
  color: #333333;
  text-align: right;
}

.mobile-card-actions {
  padding: 15px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  justify-content: center;
  background: #f8f9fa;
}

.mobile-card-header {
  padding: 15px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-card-body {
  padding: 15px;
}

.mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mobile-card-row:last-child {
  margin-bottom: 0;
}

.mobile-label {
  font-weight: 600;
  color: #666666;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-value {
  font-weight: 500;
  color: #333333;
  text-align: right;
}

.mobile-card-actions {
  padding: 15px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* Activity List Styles */
.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.activity-icon {
  width: 36px;
  height: 36px;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007AFF;
  font-size: 14px;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 14px;
  color: #333333;
  margin-bottom: 2px;
}

.activity-time {
  font-size: 12px;
  color: #666666;
}

/* Chart Container */
.chart-container {
  height: 250px;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 56px;
  }

  .main-container.master-stats {
    flex-direction: column;
    width: 95%;
    gap: 1rem;
    margin-top: 20px;
  }

  .left-column,
  .right-column {
    width: 100%;
  }

  .desktop-table {
    display: none;
  }

  .mobile-cards {
    display: block;
  }

  .card {
    padding: 15px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .navbar {
    width: 100% !important;
    padding: 0 16px !important;
    height: 56px !important;
  }

  .nav-left {
    gap: 16px;
    height: 56px;
  }

  .nav-right {
    height: 56px;
  }

  .logo {
    height: 56px;
  }

  .logo img {
    height: 28px;
  }

  .master-nav-menu {
    height: 56px;
  }

  .profile-circle {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .main-container.master-stats {
    width: 98%;
    padding: 0 0.5rem;
  }

  .card {
    padding: 12px;
  }

  .btn-primary,
  .btn-outline {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* Dark Mode Support */
[data-theme="dark"] .card {
  background-color: #2d2d2d;
  border-color: #404040;
  color: #ffffff;
}

[data-theme="dark"] .card-header {
  color: #ffffff;
}

[data-theme="dark"] .profile-name {
  color: #ffffff;
}

[data-theme="dark"] .profile-role {
  color: #c0c0c0;
}

[data-theme="dark"] .overview-item {
  color: #ffffff;
}

[data-theme="dark"] .overview-item .item-name {
  color: #ffffff;
}

[data-theme="dark"] .overview-item .item-value {
  color: #c0c0c0;
}

[data-theme="dark"] .btn-outline {
  background: #2d2d2d;
  border-color: #404040;
  color: #ffffff;
}

[data-theme="dark"] .btn-outline:hover {
  background: #404040;
  border-color: #2563eb;
  color: #2563eb;
}

[data-theme="dark"] .btn-icon {
  background: #2d2d2d;
  border-color: #404040;
  color: #ffffff;
}

[data-theme="dark"] .btn-icon:hover {
  background: #404040;
  color: #2563eb;
  border-color: #2563eb;
}

[data-theme="dark"] .data-table th {
  background-color: #404040;
  color: #ffffff;
  border-bottom-color: #666666;
}

[data-theme="dark"] .data-table td {
  color: #ffffff;
  border-bottom-color: #404040;
}

[data-theme="dark"] .data-table tbody tr:hover {
  background-color: #404040;
}

[data-theme="dark"] .data-table tbody tr:nth-child(even) {
  background-color: #333333;
}

[data-theme="dark"] .data-table tbody tr:nth-child(even):hover {
  background-color: #404040;
}

[data-theme="dark"] .mobile-card {
  background: #2d2d2d;
  border-color: #404040;
}

[data-theme="dark"] .mobile-card-header {
  border-bottom-color: #404040;
}

[data-theme="dark"] .mobile-card-actions {
  border-top-color: #404040;
}

[data-theme="dark"] .mobile-label {
  color: #c0c0c0;
}

[data-theme="dark"] .mobile-value {
  color: #ffffff;
}

[data-theme="dark"] .activity-item {
  border-bottom-color: #404040;
}

[data-theme="dark"] .activity-text {
  color: #ffffff;
}

[data-theme="dark"] .activity-time {
  color: #c0c0c0;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 25px 30px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #333;
}

.modal-body {
  padding: 0 30px 30px;
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    margin: 20px;
    max-width: none;
    border-radius: 8px;
  }

  .modal-header {
    padding: 20px 25px 15px;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .modal-body {
    padding: 0 25px 25px;
  }
}

[data-theme="dark"] body {
  background-color: #1a1a1a;
  color: #ffffff;
}

[data-theme="dark"] .chart-container {
  background: #2d2d2d;
}

[data-theme="dark"] .mobile-card-header {
  background: #404040;
}

[data-theme="dark"] .mobile-card-actions {
  background: #404040;
}

/* Dark Mode Navigation */
[data-theme="dark"] .navbar {
  background-color: #2d2d2d;
  border-bottom-color: #404040;
}

[data-theme="dark"] .menu-toggle {
  color: #ffffff;
}

[data-theme="dark"] .nav-menu a {
  color: #ffffff;
}

[data-theme="dark"] .nav-menu a:hover {
  color: #ffffff;
}

[data-theme="dark"] .dropdown {
  background: #2d2d2d;
  border-color: #404040;
}

[data-theme="dark"] .dropdown a {
  color: #ffffff;
}

[data-theme="dark"] .dropdown-header {
  color: #ffffff;
}

[data-theme="dark"] .dropdown-divider {
  background-color: #404040;
}

[data-theme="dark"] .dropdown a:hover {
  background: #404040;
}

[data-theme="dark"] .profile-dropdown {
  background: #2d2d2d;
  border-color: #404040;
}

[data-theme="dark"] .profile-dropdown a {
  color: #ffffff;
}

[data-theme="dark"] .profile-dropdown a:hover {
  background: #404040;
}

[data-theme="dark"] .nav-menu {
  background: #2d2d2d;
  border-color: #404040;
}

[data-theme="dark"] .nav-menu li {
  border-bottom-color: #404040;
}