/* Emil Shipping - Main Styles */

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

:root {
  --primary-color: #1e40af;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --border-color: #e5e7eb;

  /* Modern Admin Variables */
  --admin-bg: #f8fafc;
  --admin-sidebar-bg: #1e293b;
  --admin-sidebar-hover: #334155;
  --admin-sidebar-text: #94a3b8;
  --admin-sidebar-active: #38bdf8;
  --admin-card-bg: #ffffff;
  --admin-accent: #2563eb;
  --admin-text-main: #1e293b;
  --admin-text-muted: #64748b;
  --admin-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --admin-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--admin-accent), #1d4ed8);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  filter: brightness(1.1);
}

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

.btn-secondary {
  background: var(--white);
  color: var(--admin-text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-accent {
  background: var(--accent-color);
  color: var(--white);
}

.btn-accent:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  border-radius: 0.5rem;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Tracking Section */
.tracking-section {
  background: var(--bg-light);
  padding: 4rem 0;
}

.tracking-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tracking-input-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tracking-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1.1rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 2rem;
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-left-color: var(--white);
}

.timeline-item:nth-child(even) .timeline-content::after {
  content: '';
  position: absolute;
  left: -10px;
  top: 20px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-right-color: var(--white);
}

.timeline-marker {
  position: absolute;
  top: 20px;
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -8px;
}

.timeline-status {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.timeline-note {
  color: var(--text-light);
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Video Section */
.video-section {
  background: var(--bg-light);
}

.video-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-info {
  background: var(--primary-color);
  color: var(--white);
  padding: 2rem;
  border-radius: 1rem;
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  margin-right: 1rem;
  font-size: 1.25rem;
}

.map-container {
  margin-top: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Admin Panel */
.admin-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.admin-nav {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.admin-nav button {
  background: none;
  border: none;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.admin-nav button:hover,
.admin-nav button.active {
  background: rgba(255, 255, 255, 0.2);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.package-list {
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

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

.package-info h4 {
  margin-bottom: 0.25rem;
}

.package-status {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-created {
  background: #dbeafe;
  color: #1e40af;
}

.status-transit {
  background: #fef3c7;
  color: #d97706;
}

.status-delivered {
  background: #d1fae5;
  color: #065f46;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

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

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

.alert-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Loading */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #9ca3af;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
  }

  .timeline-marker {
    left: 12px !important;
  }

  .timeline-content::after {
    left: -10px !important;
    border-right-color: var(--white) !important;
    border-left-color: transparent !important;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tracking-input-group {
    flex-direction: column;
  }

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

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .package-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Loading Overlay & Spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  color: white;
  display: none;
  /* Hidden by default */
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--white);
  border-radius: 50%;
  animation: spinner 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Base Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 1.25rem;
  width: 95%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

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

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

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--admin-text-main);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  color: var(--admin-accent);
}

.modal-body {
  padding: 1.5rem;
}

/* Action Modals */
.action-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.action-modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.action-modal-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.icon-success {
  color: var(--success);
}

.icon-warning {
  color: var(--warning);
}

.icon-error {
  color: var(--error);
}

.action-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.action-modal-text {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.action-modal-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-danger-outline {
  background: transparent;
  color: var(--error);
  border: 1px solid var(--error);
}

.btn-danger-outline:hover {
  background: var(--error);
  color: white;
}


/* Modern Admin Layout Cleanup & Overhaul */
.admin-body {
  background-color: var(--admin-bg) !important;
  color: var(--admin-text-main);
  min-height: 100vh;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  width: 280px;
  background-color: var(--admin-sidebar-bg);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 2000;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  color: var(--admin-sidebar-active);
}

.sidebar-nav {
  flex: 1;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  color: var(--admin-sidebar-text);
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-link i {
  font-size: 1.1rem;
  width: 20px;
}

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

.sidebar-link.active {
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--admin-sidebar-active);
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--admin-sidebar-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-sidebar-active);
}

.user-details {
  overflow: hidden;
}

.user-details .name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-details .role {
  display: block;
  font-size: 0.75rem;
  color: var(--admin-sidebar-text);
}

/* Main Content Area */
.admin-content {
  flex: 1;
  margin-left: 280px;
  padding: 2rem;
  max-width: 1600px;
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-toggle {
  position: absolute;
  left: 0;
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--admin-text-main);
  cursor: pointer;
  padding: 0.5rem;
}

.page-title {
  text-align: center;
}

.page-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--admin-text-main);
  margin-bottom: 0;
  letter-spacing: -0.025em;
}

/* Modern Stats Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.modern-stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--admin-shadow);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--admin-shadow-lg);
}

.stat-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon-blue {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.stat-icon-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.stat-icon-orange {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.stat-icon-purple {
  background-color: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.stat-info .label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-bottom: 0.25rem;
}

.stat-info .value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--admin-text-main);
}

/* Modern Card Styles */
.modern-card {
  background: white;
  border-radius: 1.25rem;
  box-shadow: var(--admin-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

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

.modern-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--admin-text-main);
  margin: 0;
}

.modern-card-body {
  padding: 2rem;
}

/* Modern Table Styles */
.modern-table-container {
  overflow-x: auto;
}

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

.modern-table th {
  padding: 1rem 1.5rem;
  background-color: var(--admin-bg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: var(--admin-text-muted);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.modern-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--admin-text-main);
}

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

.modern-table tr:hover td {
  background-color: rgba(248, 250, 252, 0.5);
}

/* Status Badges */
.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.725rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-blue {
  background-color: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.badge-green {
  background-color: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
}

.badge-orange {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
}

.badge-gray {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* Action Buttons in Table */
.action-btn-group {
  display: flex;
  gap: 0.75rem;
}

.action-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.action-btn::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #1e293b;
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
  margin-bottom: 0.5rem;
}

.action-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

.action-btn-update {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.action-btn-update:hover {
  background-color: #2563eb;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.action-btn-timeline {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.1);
}

.action-btn-timeline:hover {
  background-color: #d97706;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(217, 119, 6, 0.3);
}

.action-btn-pdf {
  background-color: #f0fdf4;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.action-btn-pdf:hover {
  background-color: #10b981;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.action-btn-delete {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.1);
}

.action-btn-delete:hover {
  background-color: #dc2626;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(220, 38, 38, 0.3);
}

/* Form Improvements */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-full {
  grid-column: span 2;
}

.modern-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.modern-input:focus {
  outline: none;
  border-color: var(--admin-accent);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.modern-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--admin-text-main);
  margin-bottom: 0.5rem;
}



/* Responsive Overrides */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

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

  .admin-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .admin-content {
    padding: 1rem;
  }

  .top-bar {
    padding: 0.75rem 0.5rem;
    margin-bottom: 1.5rem;
  }

  .page-title h1 {
    font-size: 1.25rem;
  }

  .modern-card-header {
    padding: 1rem 1.25rem;
  }

  .modern-card-body {
    padding: 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .form-full {
    grid-column: span 1 !important;
  }

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

  .modern-stat-card {
    padding: 1rem;
  }

  .stat-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .stat-info .value {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .admin-content {
    padding: 0.75rem;
  }

  .modern-card {
    border-radius: 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .top-bar {
    padding: 0.5rem;
  }

  .mobile-toggle {
    font-size: 1.25rem;
  }

  .page-title h1 {
    font-size: 1.1rem;
  }

  /* Force table scroll indicators and prevent layout breaks */
  .modern-table-container {
    -webkit-overflow-scrolling: touch;
    border-radius: 0.75rem;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    margin: 0 -0.5rem;
    padding: 0 0.5rem;
  }

  .modern-table th {
    padding: 0.75rem;
    font-size: 0.7rem;
  }

  .modern-table td {
    padding: 0.75rem;
    font-size: 0.825rem;
    white-space: nowrap;
  }

  .action-btn-group {
    gap: 0.5rem;
  }

  .action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
}