    /* --- VARS --- */
    :root {
      --bg-primary: #f4f6f9;
      --bg-sidebar: #1e293b;
      --bg-card: #ffffff;
      --text-main: #334155;
      --text-muted: #64748b;
      --text-light: #f8fafc;
      --accent: #3b82f6;
      --border-color: #e2e8f0;
      --sidebar-width: 260px;
    }

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

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: var(--bg-primary);
      color: var(--text-main);
    }

    /* --- BASE GRID  --- */
    .dashboard-container {
      display: grid;
      grid-template-columns: var(--sidebar-width) 1fr;
      grid-template-rows: 60px 1fr;
      grid-template-areas:
        "sidebar header"
        "sidebar main";
      min-height: 100vh;
    }

    /* HIDDEN TOGGLE */
    #sidebar-toggle {
      position: absolute;
      opacity: 0;
      z-index: -1;
    }

    /* --- MENU --- */
    .sidebar {
      grid-area: sidebar;
      background-color: var(--bg-sidebar);
      color: var(--text-light);
      padding: 20px;
      display: flex;
      flex-direction: column;
      z-index: 100;
    }

    .brand {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 40px;
      letter-spacing: 0.5px;
      color: #fff;
    }

    .nav-links {
      list-style: none;
    }

    .nav-links li {
      margin-bottom: 10px;
    }

    .nav-links a {
      display: block;
      color: #94a3b8;
      text-decoration: none;
      padding: 12px 15px;
      border-radius: 6px;
      font-weight: 500;
      transition: all 0.2s ease;
    }

    .nav-links a:hover,
    .nav-links li.active a {
      background-color: rgba(255, 255, 255, 0.1);
      color: #fff;
    }

    /* --- HEADER --- */
    .header {
      grid-area: header;
      background-color: var(--bg-card);
      border-bottom: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      padding: 0 30px;
    }

    /* MENU BUTTON */
    .menu-btn {
      display: none;
      font-size: 1.5rem;
      cursor: pointer;
      user-select: none;
      padding: 5px 10px;
    }

    .user-profile {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-left: auto; /* align */
    }

    .avatar {
      width: 36px;
      height: 36px;
      background-color: var(--accent);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-weight: bold;
    }

    /* --- CONTENT --- */
    .main-content {
      grid-area: main;
      padding: 30px;
    }

    .page-title {
      margin-bottom: 25px;
      font-size: 1.5rem;
      font-weight: 600;
    }

    /* CARD GRID */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
      margin-bottom: 30px;
    }

    .card {
      background-color: var(--bg-card);
      padding: 20px;
      border-radius: 8px;
      border: 1px solid var(--border-color);
    }

    .card-title {
      font-size: 0.875rem;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-bottom: 10px;
      font-weight: 600;
    }

    .card-value {
      font-size: 1.75rem;
      font-weight: 700;
      margin-bottom: 5px;
    }

    .card-status { font-size: 0.875rem; font-weight: 500; }
    .status-up { color: #10b981; }
    .status-down { color: #ef4444; }

    /* TABLE */
    .data-section {
      background-color: var(--bg-card);
      border-radius: 8px;
      border: 1px solid var(--border-color);
      padding: 20px;
    }

    .section-title { font-size: 1.1rem; margin-bottom: 20px; font-weight: 600; }
    .table-container { width: 100%; overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; text-align: left; }
    th, td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); }
    th { background-color: var(--bg-primary); color: var(--text-muted); font-size: 0.875rem; }
    tr:hover td { background-color: #f8fafc; }
    

    /* ---MOBILE --- */
    @media (max-width: 768px) {
      .dashboard-container {
        grid-template-columns: 1fr;
        grid-template-areas:
          "header"
          "main";
      }

      .menu-btn {
        display: block; /* SHOW MENU */
      }

      /* TO LEFT */
      .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999; /* OVERALL */
      }

      /* SIDEBAR TOGGLE */
      #sidebar-toggle:checked ~ .dashboard-container .sidebar {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
      }

      /*  */
      #sidebar-toggle:checked ~ .dashboard-container .menu-btn {
        position: relative;
        z-index: 1000;
        color: #fff; /*  */
      }
    }
	
	
/* --- ACTIONS SECTION --- */
.actions-section {
  display: flex;
  gap: 15px;               
  flex-wrap: wrap;         
  margin-bottom: 30px;     
}

.rounded-btn {
  cursor: pointer;
  font-weight: 500;
		border: 1px solid #ccc;
  transition: background-color 0.2s ease, transform 0.1s ease;
		padding: 10px 20px;
		border-radius: 8px; /* Subtle rounding */
		background-color: #28a745;
		color : white;
}


.rounded-btn:hover {
  background-color: #218838; 
}

.rounded-btn:active {
  transform: scale(0.98);    
}

.actions-section .secondary-btn {
  background-color: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.actions-section .secondary-btn:hover {
  background-color: #f8fafc;
}
	
	