/* 
   GKN West Sulawesi Queue App - Core Styles (Final Safety Version)
*/

:root {
    --kemenkeu-blue: #02275d;
    --kemenkeu-gold: #fdb913;
    --kemenkeu-white: #ffffff;
    --kemenkeu-gray-light: #f4f6f9;
    --kemenkeu-gray-dark: #343a40;
    --accent-blue: #eef2f7;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--kemenkeu-gray-light);
    font-family: 'Inter', sans-serif;
    color: var(--kemenkeu-gray-dark);
}

/* Base Components */
.card {
    background: #ffffff !important;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.admin-body {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #001529 !important;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    background: #002140;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-title {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.sidebar-subtitle {
    font-size: 0.75rem;
    color: var(--kemenkeu-gold);
    font-weight: 600;
    margin-top: 2px;
}

.main-container {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: #ffffff !important;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 900;
}

.content-area {
    padding: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--kemenkeu-blue);
    color: white;
}

.btn-gold {
    background: var(--kemenkeu-gold);
    color: var(--kemenkeu-blue);
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-left: 4px solid transparent;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--kemenkeu-gold);
}

.table-admin {
    width: 100%;
    border-collapse: collapse;
}

.table-admin th,
.table-admin td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.table-admin th {
    background: #f8fafc;
    color: var(--kemenkeu-blue);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* RE-ENGINEERED MODAL SYSTEM (To avoid conflicts) */
.gkn-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    /* JS will change this to flex */
    align-items: center;
    justify-content: center;
}

.gkn-modal-card {
    background: #ffffff;
    width: 550px;
    max-width: 95%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.gkn-modal-header {
    background: var(--kemenkeu-blue);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gkn-modal-body {
    padding: 2.5rem 2rem;
}

.gkn-modal-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
}