/* public_html/cios/assets/style.css */

:root {
    --brand: #FF881F;
    --brand-dark: #e6771a;
    --ink: #111827;
    --ink-soft: #4b5563;
    --border: #e5e7eb;
    --bg: #f7f8fa;
    --card: #ffffff;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(17,24,39,0.05), 0 4px 12px rgba(17,24,39,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
}

/* ===== LAYOUT ===== */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 220px;
    background: var(--ink);
    color: #fff;
    padding: 24px 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.sidebar .brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--brand);
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.sidebar nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar nav a.active { background: var(--brand); color: #fff; }

.main-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 20px 32px;
}
.topbar h1 { font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 700; }
.content-area { padding: 32px; max-width: 1000px; animation: fadeIn 0.3s ease; }

/* ===== COMPONENTS ===== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 2px 4px rgba(17,24,39,0.06), 0 8px 20px rgba(17,24,39,0.08); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 13px; color: var(--ink-soft); }
label:first-child { margin-top: 0; }
input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255,136,31,0.15);
}

button, .btn {
    margin-top: 18px;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
button:hover, .btn:hover { background: var(--brand-dark); }
button:active, .btn:active { transform: scale(0.98); }
button:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: #f3f4f6; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

.success {
    background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0;
    padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; animation: slideIn 0.25s ease;
}
.empty-state { color: var(--ink-soft); font-size: 13px; padding: 8px 0; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff; border-radius: 50%;
    animation: spin 0.6s linear infinite; display: inline-block; vertical-align: middle; margin-right: 8px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .app-shell { flex-direction: column; }
    .sidebar { width: 100%; padding: 16px; }
    .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .content-area { padding: 20px; }
}