/* ============================================================
   User Panel – fresh, clean with teal accent
   ============================================================ */

body.user-body {
  background: var(--bg);
  background-image: radial-gradient(circle at 10% 20%, rgba(42,109,244,0.04) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(15,175,122,0.04) 0%, transparent 40%);
}

/* ----- Sidebar (unchanged) ----- */
.user-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  padding: 18px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--glass-border);
  z-index: 50;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 20px rgba(0,0,0,0.03);
}

.user-sidebar .brand { padding: 6px 8px 22px; display: flex; align-items: center; gap: 12px; }
.user-sidebar .brand-name { font-weight: 800; }
.user-sidebar .nav-label {
  padding: 16px 10px 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.user-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  margin: 2px 0;
  font-weight: 600;
  transition: all var(--transition);
}
.user-sidebar .nav-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
  transform: translateX(4px);
}
.user-sidebar .nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 3px 0 var(--primary);
}
.user-sidebar .sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.user-sidebar .user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
}
.user-sidebar .avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0faf7a, #0a8a64);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}
.user-sidebar .logout { font-size: 12px; color: var(--muted); }

/* ----- Main content ----- */
.user-main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  padding: 30px 30px 40px;
}
.user-main .stat-card:first-child { border-top: 3px solid var(--success); }
.user-main .accent { color: var(--success); }
.user-main .btn-primary {
  background: linear-gradient(135deg, #0faf7a, #0a8a64);
  box-shadow: 0 8px 20px rgba(15,175,122,0.25);
}
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--success-soft);
  color: var(--success);
}

/* ============================================================
   ADDED: Global form & button styling (was missing)
   ============================================================ */

/* ----- Buttons (force visibility) ----- */
.btn, a.btn, button.btn, input[type="submit"] {
    display: inline-block;
    padding: 10px 18px;
    background: #2a6df4;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn:hover, a.btn:hover, button.btn:hover {
    background: #1a5ad0;
    transform: translateY(-1px);
}
.btn-primary { background: #2a6df4; }
.btn-success { background: #0faf7a; }
.btn-danger { background: #e84c5e; }
.btn-warning { background: #e5a03a; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ----- Forms: inputs, selects, textareas ----- */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    background: #fff;
    color: #0f1a2e;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
    border-color: #2a6df4;
    box-shadow: 0 0 0 3px rgba(42,109,244,0.2);
}

/* ----- Labels ----- */
label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
    font-size: 14px;
    color: #0f1a2e;
}

/* ----- Cards ----- */
.card {
    padding: 20px 24px;
    background: var(--surface, #fff);
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.05));
    margin-bottom: 20px;
}

/* ----- Table action column ----- */
.table-wrap td .btn,
.table-wrap td a.btn {
    margin: 0 2px;
}

/* ----- Alerts (ensure text is visible) ----- */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}
.alert-success { background: #e6f7f0; color: #0faf7a; border: 1px solid #b8e6d4; }
.alert-danger { background: #fde8e8; color: #e84c5e; border: 1px solid #f5c2c2; }
.alert-warning { background: #fef5e6; color: #e5a03a; border: 1px solid #f7ddb3; }
.alert-neutral { background: #f0f2f5; color: #6b7a8f; border: 1px solid #d0d7de; }

/* ============================================================
   Responsive (unchanged, kept at bottom)
   ============================================================ */

@media (max-width: 900px) {
  .user-sidebar {
    width: 76px;
    padding: 14px 8px;
  }
  .user-sidebar .brand-name,
  .user-sidebar .nav-label,
  .user-sidebar .nav-text,
  .user-sidebar .user-meta { display: none; }
  .user-sidebar .brand { justify-content: center; padding: 6px 0 16px; }
  .user-sidebar .nav-link { justify-content: center; padding: 12px; }
  .user-sidebar .user-chip { justify-content: center; }
  .user-main { margin-left: 76px; padding: 20px; }
}
@media (max-width: 620px) {
  .user-sidebar {
    width: 280px;
    transform: translateX(-105%);
    transition: transform var(--transition);
    padding: 18px 14px;
  }
  .user-sidebar.open { transform: translateX(0); }
  .user-sidebar .brand-name,
  .user-sidebar .nav-label,
  .user-sidebar .nav-text,
  .user-sidebar .user-meta { display: block; }
  .user-sidebar .brand { justify-content: flex-start; }
  .user-sidebar .nav-link { justify-content: flex-start; }
  .user-main { margin-left: 0; padding: 16px; }
  .user-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 45;
    backdrop-filter: blur(4px);
  }
  .user-overlay.show { display: block; }
}

/* ============================================================
   FORCE VISIBILITY – All buttons, inputs, selects, textareas
   ============================================================ */

/* Buttons – force visible */
button,
.btn,
a.btn,
input[type="submit"],
input[type="button"] {
    display: inline-block !important;
    padding: 10px 18px !important;
    background: #2a6df4 !important;
    color: #fff !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s !important;
}
button:hover,
.btn:hover,
a.btn:hover,
input[type="submit"]:hover {
    background: #1a5ad0 !important;
    transform: translateY(-1px) !important;
}
.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
}
.btn-primary { background: #2a6df4 !important; }
.btn-success { background: #0faf7a !important; }
.btn-danger { background: #e84c5e !important; }
.btn-warning { background: #e5a03a !important; }

/* Inputs, selects, textareas – force visible */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #d0d7de !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #0f1a2e !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}
input:focus, select:focus, textarea:focus {
    border-color: #2a6df4 !important;
    box-shadow: 0 0 0 3px rgba(42,109,244,0.2) !important;
}

/* Labels – force visible */
label {
    display: block !important;
    margin: 14px 0 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #0f1a2e !important;
}

/* Cards – ensure proper padding */
.card {
    padding: 20px 24px !important;
    background: var(--surface, #fff) !important;
    border-radius: var(--radius, 16px) !important;
    box-shadow: var(--shadow, 0 4px 12px rgba(0,0,0,0.05)) !important;
    margin-bottom: 20px !important;
}

/* Alerts – force visible */
.alert {
    padding: 14px 18px !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
}
.alert-success { background: #e6f7f0 !important; color: #0faf7a !important; border: 1px solid #b8e6d4 !important; }
.alert-danger { background: #fde8e8 !important; color: #e84c5e !important; border: 1px solid #f5c2c2 !important; }
.alert-warning { background: #fef5e6 !important; color: #e5a03a !important; border: 1px solid #f7ddb3 !important; }
.alert-neutral { background: #f0f2f5 !important; color: #6b7a8f !important; border: 1px solid #d0d7de !important; }