/* ============================================
   GM Networks Ticketing & PSB System
   Enterprise Corporate Theme (Dashboard: Blue Bg & Black Text)
   ============================================ */

/* === Root Variables === */
:root {
    --gmn-primary: #0284c7;
    --gmn-primary-dark: #0369a1;
    --gmn-accent: #38bdf8;
    --gmn-bg-body: #f4f6f9;
    --gmn-bg-sidebar: #343a40;
    --gmn-bg-card: #ffffff;
    --gmn-bg-card-header: rgba(2, 132, 199, 0.08);
    --gmn-border: rgba(0, 0, 0, 0.125);
    --gmn-text: #212529;
    --gmn-text-muted: #6c757d;
    --gmn-success: #10b981;
    --gmn-warning: #f59e0b;
    --gmn-danger: #ef4444;
    --gmn-info: #06b6d4;
}

/* === Global Body === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--gmn-bg-body) !important;
    color: var(--gmn-text);
    letter-spacing: -0.1px;
}

/* === Sidebar Korporat === */
.main-sidebar {
    background: var(--gmn-bg-sidebar) !important;
    border-right: 1px solid var(--gmn-border);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover {
    background: linear-gradient(135deg, var(--gmn-primary) 0%, var(--gmn-primary-dark) 100%) !important;
    color: #fff !important;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.sidebar-dark-primary .nav-sidebar .nav-link {
    color: var(--gmn-text-muted);
    border-radius: 6px;
    margin: 3px 10px;
    padding: 10px 14px;
    transition: all 0.2s ease;
}

.brand-link {
    border-bottom: 1px solid var(--gmn-border) !important;
    background: rgba(2, 132, 199, 0.04) !important;
    padding: 16px 12px !important;
}

.brand-link .brand-text {
    letter-spacing: 1.5px;
    font-size: 1.1rem;
    font-weight: 700;
}

.brand-link .brand-icon {
    color: var(--gmn-accent);
}

/* === Navbar Header === */
.main-header.navbar {
    background: var(--gmn-bg-sidebar) !important;
    border-bottom: 1px solid var(--gmn-border);
}

/* === Content Wrapper === */
.content-wrapper {
    background-color: var(--gmn-bg-body) !important;
    padding-bottom: 2rem;
}

.content-header h1 {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gmn-text);
}

/* === Cards Korporat === */
.card {
    background-color: var(--gmn-bg-card) !important;
    border: 1px solid var(--gmn-border) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 1.5rem;
}

.card-header {
    background: var(--gmn-bg-card-header) !important;
    border-bottom: 1px solid var(--gmn-border) !important;
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem 1.25rem;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gmn-text);
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: rgba(0, 0, 0, 0.1) !important;
    border-top: 1px solid var(--gmn-border) !important;
    border-radius: 0 0 10px 10px !important;
}

/* === Form Input Dashboard (Background Biru, Teks Hitam) === */
.form-control, .custom-select, .custom-file-label {
    background-color: #0284c7 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #000000 !important; /* Teks yang diketik berubah menjadi Hitam */
    -webkit-text-fill-color: #000000 !important;
    font-weight: 600 !important; /* Dibuat sedikit tebal agar kontras di atas biru */
    border-radius: 6px !important;
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
    height: auto;
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: #0369a1 !important;
    border-color: #38bdf8 !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.8) !important; /* Placeholder tetap putih agak transparan */
    opacity: 1;
}

.form-control:disabled, .form-control[readonly] {
    background-color: rgba(2, 132, 199, 0.5) !important;
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

select.form-control option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--gmn-text-muted);
    margin-bottom: 6px;
}

/* === Enterprise Tables === */
.table {
    color: var(--gmn-text) !important;
    margin-bottom: 0;
}

.table thead th {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 2px solid var(--gmn-border) !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gmn-text-muted) !important;
    padding: 12px 10px !important;
    white-space: nowrap;
}

.table td {
    border-top: 1px solid var(--gmn-border) !important;
    vertical-align: middle !important;
    font-size: 0.85rem;
    padding: 12px 10px !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(2, 132, 199, 0.08) !important;
}

/* === Tombol Korporat === */
.btn-primary {
    background: #0284c7 !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #0369a1 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: #10b981 !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 600;
}

.btn-success:hover {
    background: #059669 !important;
}

/* === Status & Priority Badges === */
.badge-status-baru { background: #3b82f6; color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-status-proses { background: #f59e0b; color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-status-selesai { background: #10b981; color: #fff; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
::-webkit-scrollbar-thumb { background: rgba(2, 132, 199, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(2, 132, 199, 0.7); }


/* ============================================
   Full-Screen Logo Background Login (Kotak Putih, Teks Hitam)
   ============================================ */
body.login-page {
  background: linear-gradient(135deg, rgba(130, 136, 148, 0.92) 0%, rgba(150, 156, 168, 0.95) 100%),
              url('./assets/logo.png') no-repeat center center fixed !important;
  background-size: cover !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

.login-logo {
  display: none !important;
}

.login-box {
  width: 400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.login-box .card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden;
}

.login-card-body {
  background: transparent !important;
  color: #1e293b !important;
  padding: 2.5rem 2rem !important;
}

.login-box-msg {
  color: #475569 !important;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  text-align: left;
}

/* Form khusus halaman login (Background putih, teks hitam) */
.login-card-body .form-control {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 400 !important;
  border-radius: 6px !important;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  height: auto;
}

.login-card-body .form-control:focus {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}

.login-card-body .form-control::placeholder {
  color: #94a3b8 !important;
}

#btn-login {
  background: #0284c7 !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
}

#btn-login:hover {
  background: #0369a1 !important;
  box-shadow: 0 6px 12px -1px rgba(2, 132, 199, 0.5);
}