body {
    background: #f5f8fc;
    font-family: 'Segoe UI', sans-serif;
  }
  .card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: none;
  }
  .stat-value {
    font-size: 20px;
    font-weight: 700;
  }
  .btn-main {
    background: #1e88e5;
    color: #fff;
    border-radius: 10px;
    padding: 14px;
    font-weight: 600;
  }

  .stat-card {
background: #ffffff;
border-radius: 12px;
padding: 16px 12px;
text-align: center;

border: 1px solid #f0f2f6;
box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.stat-card .label {
font-size: 12px;
color: #8a8f98;
margin-bottom: 6px;
font-weight: 500;
}

.stat-card .stat-value {
font-size: 26px;
font-weight: 700;
color: #111;
}
.stat-card::before {
content: "";
display: block;
width: 24px;
height: 3px;
background: #1e88e5;
border-radius: 4px;
margin: 0 auto 8px;
opacity: 0.15;
}


.action-card {
display: flex;
flex-direction: column;
justify-content: center;

background: #ffffff;
border-radius: 14px;
padding: 18px 14px;
text-align: center;

height: 100%;
min-height: 120px;

box-shadow: 0 6px 14px rgba(0,0,0,0.08);
transition: box-shadow 0.2s ease;

color: #000;
}


.action-card:hover {
box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.action-card .icon {
font-size: 26px;
margin-bottom: 8px;
}

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

.action-card small {
font-size: 12px;
color: #666;
line-height: 1.2;
}


.action-card.primary {
border: 2px solid #1e88e5;
}

.action-card.highlight {
border: 2px solid #1e88e5;
background: #f7fbff;
}

.icon-circle {
width: 44px;
height: 44px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 8px;
font-size: 20px;
}

.icon-circle.blue {
background: #e3f2fd;
color: #1e88e5;
}

.icon-circle.orange {
background: #fff3e0;
color: #fb8c00;
}

.icon-circle.green {
background: #e8f5e9;
color: #43a047;
}

.icon-circle.purple {
background: #f3e5f5;
color: #8e24aa;
}

.order-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 12px;
    z-index: 2;
  }

  /* Dark Mode */
  .theme-toggle {
    cursor: pointer;
    font-size: 20px;
    color: #555;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  .theme-toggle:hover {
    transform: scale(1.15);
    color: #1e88e5;
  }
  
  /* Icon animation */
  .theme-toggle.animate {
    animation: spinScale 0.4s ease;
  }
  
  @keyframes spinScale {
    0% {
      transform: rotate(0deg) scale(1);
    }
    50% {
      transform: rotate(180deg) scale(1.2);
    }
    100% {
      transform: rotate(360deg) scale(1);
    }
  }
  
/* ===== DARK MODE ===== */

body.dark {
    background: #121212;
    color: #e6e6e6;
  }
  
  /* Text */
  body.dark .text-muted {
    color: #9aa0a6 !important;
  }
  
  /* Cards */
  body.dark .stat-card,
  body.dark .action-card {
    background: #1e1e1e;
    border-color: #2c2c2c;
    box-shadow: none;
  }
  
  /* Action card titles */
  body.dark .action-card .title {
    color: #e6e6e6;
  }
  
  /* Action card small text */
  body.dark .action-card small {
    color: #a0a0a0;
  }
  
  /* Icons – darker but vibrant */
  body.dark .icon-circle.blue {
    background: rgba(30,136,229,0.15);
    color: #90caf9;
  }
  
  body.dark .icon-circle.orange {
    background: rgba(251,140,0,0.15);
    color: #ffb74d;
  }
  
  body.dark .icon-circle.green {
    background: rgba(67,160,71,0.15);
    color: #81c784;
  }
  
  body.dark .icon-circle.purple {
    background: rgba(142,36,170,0.15);
    color: #ce93d8;
  }
  
  /* Theme toggle icon */
  body.dark .theme-toggle {
    color: #fdd835; /* Sun yellow */
  }
  
   