@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary-color: #15A69F;
  --primary-light: #818cf8;
  --success-color: #10b981;
  --border-color: #e5e7eb;
  --bg-hover: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  text-align: center;
}

h1 {
  margin: 20px 0;
  color: var(--text-primary);
  font-weight: 600;
}

/* Stats container and cards */
.stats-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 15px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--primary-light)
  );
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stat-card h3 {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

.stat-value {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.stat-value span {
  font-size: 14px;
  color: var(--success-color);
  font-weight: 500;
  padding: 4px 8px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 6px;
}

/* Top Navigation */
.top-nav {
  background-color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  padding-left: 80px;
  transition: 0.3s;
}

.color-strip {
  height: 5px;
  background: linear-gradient(90deg, #15A69F, #0F9D58);
}

.logo {
  height: 60px;
}

.nav-icons {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-icons i {
  font-size: 24px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

/* Bell Icon Animation */
.nav-icons .fa-bell:hover {
  color: #FFA500;
  animation: ring 0.5s ease-in-out;
}

@keyframes ring {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(15deg); }
  50% { transform: rotate(-15deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

/* Profile Icon Animation */
.nav-icons .fa-user-circle:hover {
  color: #15A69F;
  transform: scale(1.1);
}

/* Logout Icon Animation */
.nav-icons .fa-sign-out-alt:hover {
  color: #FF4B5C;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

/* Custom 3 Dot Menu */
.left-menu-toggle {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 32px;
  height: 32px;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: -280px;
  top: 0;
  height: 100%;
  width: 280px;
  background: #2c3e50;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  transition: 0.3s;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 30px 20px;
  background: #34495e;
  text-align: center;
}

.profile-section {
  color: white;
}

.profile-icon {
  font-size: 70px;
  color: #15A69F;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.profile-icon img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.sidebar-menu {
  padding: 20px 0;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  margin: 8px 15px;
  color: #bdc3c7;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.sidebar-menu a:hover {
  background: #34495e;
  color: #15A69F;
}

.sidebar-menu i {
  margin-right: 15px;
  width: 20px;
  color: #15A69F;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

/* Sub menu styles */
.menu-item {
  position: relative;
}

.submenu {
  display: none;
  padding-left: 15px;
}

.submenu a {
  padding: 10px 15px;
  margin-left: 25px;
  font-size: 0.9em;
}

/* Dashboard Cards */
.dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 20px auto;
  position: relative;
}

.dashboard-item {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Color Strips */
.dashboard-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.user::before { background-color: #2E86C1; }
.meal::before { background-color: #4285F4; }
.cost::before { background-color: #F4B400; }
.deposit::before { background-color: #0F9D58; }
.report::before { background-color: #AB47BC; }
.note::before { background-color: #F4511E; }
.notice::before { background-color: #ff4b5c; }

.dashboard-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.image-wrapper {
  margin-bottom: 15px;
}

.image-wrapper img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s;
}

.dashboard-item:hover .image-wrapper img {
  transform: scale(1.1);
}

.dashboard-item h2 {
  font-size: 18px;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.dashboard-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 15px;
}

/* Button Animations */
.dashboard-item button {
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.dashboard-item button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dashboard-item button:active {
  transform: scale(0.95);
}

.dashboard-item button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
}

.dashboard-item button:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

/* Button Colors */
.user button { background-color: #2E86C1; }
.meal button { background-color: #4285F4; }
.cost button { background-color: #F4B400; }
.deposit button { background-color: #0F9D58; }
.report button { background-color: #AB47BC; }
.note button { background-color: #F4511E; }
.notice button { background-color: #ff4b5c; }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
  }
  
  .dashboard-item {
    padding: 15px;
  }
  
  .image-wrapper img {
    width: 50px;
    height: 50px;
  }
  
  .sidebar {
    width: 80%;
    left: -80%;
  }
  
  .top-nav {
    padding: 10px 20px 10px 60px;
  }
  
  .logo {
    height: 40px;
  }
  
  .left-menu-toggle {
    width: 24px;
    height: 24px;
  }
  
  .stat-card {
    padding: 15px;
  }
  
  .stat-value {
    font-size: 20px;
  }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .logo {
  height: 30px;
}

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .dashboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .dashboard-item h2 {
    font-size: 16px;
  }
  
  .dashboard-item p {
    font-size: 12px;
  }
  
  .dashboard-item button {
    padding: 8px 15px;
    font-size: 12px;
  }
  
  .top-nav {
    padding: 10px 15px 10px 50px;
  }
  
  .logo {
    height: 30px;
  }
  
  .nav-icons {
    gap: 15px;
  }
  
  .nav-icons i {
    font-size: 18px;
  }
  
  .sidebar-menu a {
    padding: 10px 15px;
    margin: 5px 10px;
  }
}

/* Sidebar Logo */
.sidebar-logo {
  width: 200px;
  margin: 2px auto;
  display: block;
}

/* Fix for card conflicts */
.card {
  padding: 20px;
  border-radius: 12px;
  background: white;
  border: 1px solid #e0e0e0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}