/* 
   GLM Modern Design System 2026 - PURE CUSTOM (NO ARGON)
   Colors: Emerald Green (#064e3b) & Gold (#d4af37)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #064e3b;
  --primary-light: #0d7a5c;
  --primary-dark: #022c22;
  --secondary: #d4af37;
  --secondary-light: #e5c158;
  
  --bg-app: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --sidebar-width: 280px;
  --navbar-height: 70px;
  --radius-lg: 24px;
  --radius-md: 14px;
  
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: 'Outfit', sans-serif !important;
  background-color: var(--bg-app) !important;
  color: var(--text-main) !important;
  min-height: 100vh;
}

/* ---- Layout Wrapper ---- */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* ---- Sidebar ---- */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 1000;
  transition: all 0.3s ease;
}

.sidebar-header {
  padding: 30px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 45px !important;
  height: 45px !important;
  object-fit: contain;
}

.sidebar-title {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary);
  letter-spacing: -1px;
}

.sidebar-nav {
  padding: 20px 15px;
  flex: 1;
  overflow-y: auto;
}

.nav-group-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 25px 0 12px 15px;
  letter-spacing: 1.5px;
  opacity: 0.6;
}

.nav-item-custom {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  color: var(--text-muted);
  text-decoration: none !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 6px;
}

.nav-item-custom i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  opacity: 0.7;
}

.nav-item-custom:hover {
  background: rgba(6, 78, 59, 0.05);
  color: var(--primary);
  transform: translateX(3px);
}

.nav-item-custom.active {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(6, 78, 59, 0.2);
}

.sidebar-footer {
  padding: 25px;
  border-top: 1px solid var(--border-color);
}

/* ---- Main Content ---- */
.main-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-navbar {
  height: var(--navbar-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 999;
}

.content-wrapper {
  padding: 40px;
  flex: 1;
}

/* ---- Headers & Banners ---- */
.view-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 45px 40px;
  border-radius: var(--radius-lg);
  color: #fff;
  margin-bottom: 35px;
  box-shadow: 0 20px 40px rgba(6, 78, 59, 0.15);
  position: relative;
  overflow: hidden;
}

.view-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  color: #fff !important;
}

.view-header p {
  opacity: 0.85;
  font-weight: 400;
  font-size: 1.1rem;
  color: #fff !important;
}

/* ---- Cards ---- */
.premium-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-premium);
  padding: 30px;
  margin-bottom: 30px;
}

.card-title {
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

/* ---- Components ---- */
.btn-premium {
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  text-decoration: none !important;
}

.btn-primary-p { background: var(--primary); color: #fff !important; }
.btn-gold { background: var(--secondary); color: #000; }
.btn-secondary { background: #fff; border: 1px solid var(--border-color); color: var(--text-main); }

.form-group-p { margin-bottom: 25px; }
.form-label-p { display: block; font-size: 0.85rem; font-weight: 800; color: var(--text-main); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }

.form-control-p {
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control-p:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(6, 78, 59, 0.08);
}

/* ---- Tables ---- */
.premium-table-wrapper {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
}

.premium-table th {
  background: #f8fafc;
  padding: 20px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-color);
}

.premium-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  font-size: 1rem;
  color: var(--text-main);
}

/* Custom Tabs */
.custom-tabs { display: flex; gap: 15px; margin-bottom: 30px; }
.tab-btn { padding: 12px 25px; border-radius: 50px; border: 1px solid var(--border-color); background: #fff; color: var(--text-muted); font-weight: 700; cursor: pointer; transition: all 0.3s; }
.tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Color Utilities Overrides ---- */
.bg-primary { background-color: var(--primary) !important; }
.bg-primary-light { background-color: rgba(6, 78, 59, 0.1) !important; }
.bg-success { background-color: #10b981 !important; }
.bg-danger { background-color: #ef4444 !important; }
.bg-warning { background-color: var(--secondary) !important; color: #000 !important; }
.bg-info { background-color: #3b82f6 !important; }
.bg-gold { background-color: var(--secondary) !important; color: #000 !important; }

.text-primary { color: var(--primary) !important; }
.text-gold { color: var(--secondary) !important; }

.btn-primary { 
  background-color: var(--primary) !important; 
  border-color: var(--primary) !important; 
  color: #fff !important;
}
.btn-primary:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
}

@media (max-width: 992px) {
  .app-sidebar { transform: translateX(-100%); }
  .main-area { margin-left: 0; }
}

/* Utility classes for Job Roles */
.bg-primary-light { background-color: rgba(6,78,59,0.06) !important; }
.text-emerald { color: var(--primary) !important; }
.cursor-pointer { cursor: pointer; }
.border-primary { border-color: var(--primary) !important; }

/* Job Role search dropdown */
.job-role-dropdown::-webkit-scrollbar { width: 6px; }
.job-role-dropdown::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
.job-role-dropdown .job-role-option:last-child { border-bottom: none !important; }
