:root {
  --color-primary: #0054d3;
  --color-secondary: #284083;
  --color-accent: #69676f;
  --color-white: #ffffff;
  --color-bg: #f3f4f6;
  --color-text: #1f2937;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
}

/* Base Components */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(0, 84, 211, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(0, 84, 211, 0.3);
}

.card {
  background-color: var(--color-white);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  border: 1px solid rgba(105, 103, 111, 0.1);
}

.input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 84, 211, 0.1);
}

/* Glassmorphism utilities */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Utilities */
.admin-layout { display: flex; min-height: 100vh; overflow-x: hidden; }
.sidebar {
    width: 260px;
    background: #ffffff;
    box-shadow: 2px 0 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform 0.3s ease;
}
.main-content {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
    background-color: var(--color-bg);
    transition: padding 0.3s ease;
    width: 100%;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}
.mobile-menu-btn { display: none; }

/* Responsive Grid/Flex */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

/* Table Wrapper */
.table-responsive { overflow-x: auto; width: 100%; border-radius: 0.5rem; border: 1px solid rgba(0,0,0,0.05); }
.table-responsive table { min-width: 600px; width: 100%; border-collapse: collapse; }
.table-responsive th, .table-responsive td { padding: 1rem; text-align: left; }
.table-responsive th { background: rgba(0,0,0,0.02); color: var(--color-secondary); font-weight: 600; }
.table-responsive tr { border-bottom: 1px solid rgba(0,0,0,0.05); }

/* Components */
.btn-icon { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn-block { width: 100%; }

/* Mobile Adaptations */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        height: 100vh;
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 40;
    }
    .main-content { padding: 20px 15px; }
    .topbar { margin-bottom: 25px; }
    .mobile-menu-btn { 
        display: block; 
        background: none; 
        border: none; 
        font-size: 1.5rem; 
        color: var(--color-secondary);
        cursor: pointer;
    }
    .card { padding: 1.25rem; }
    .topbar h1 { font-size: 1.5rem; }
}
