/**
 * ==========================================================
 * FILE
 * ==========================================================
 * assets/css/app.css
 *
 * CSS utama aplikasi Purchasing SKK.
 *
 * Fungsi:
 * - menyimpan styling global aplikasi
 * - membuat tampilan login modern
 * - membuat navbar profesional
 * - membuat dashboard card modern
 * - menjaga konsistensi UI aplikasi
 *
 * Project:
 * purchasing2.skketapang.org
 * ==========================================================
 */

:root {
    --skk-primary: #0d6efd;
    --skk-primary-dark: #084298;
    --skk-soft: #eef5ff;
    --skk-text: #132238;
    --skk-muted: #64748b;
    --skk-border: #e5e7eb;
}

body {
    min-height: 100vh;
    color: var(--skk-text);
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 32%),
        linear-gradient(135deg, #f7faff 0%, #f1f3f7 100%);
}

.card {
    border-radius: 16px;
}

.btn,
.form-control,
.form-select {
    border-radius: 11px;
}

/*
|--------------------------------------------------------------------------
| Navbar
|--------------------------------------------------------------------------
*/

.app-navbar {
    min-height: 58px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.app-navbar .navbar-brand,
.app-navbar .nav-link,
.app-navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.app-navbar .navbar-brand {
    font-weight: 800;
    letter-spacing: -0.2px;
}

.app-navbar .nav-link {
    font-weight: 600;
    opacity: 0.9;
}

.app-navbar .nav-link:hover {
    opacity: 1;
}

.app-navbar .dropdown-menu {
    border: 0;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.app-navbar .dropdown-item {
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 500;
}

/*
|--------------------------------------------------------------------------
| Auth
|--------------------------------------------------------------------------
*/

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 18px;
}

.auth-card {
    width: 100%;
    max-width: 1080px;
    min-height: 520px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.auth-brand-panel {
    position: relative;
    padding: 54px 48px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(13, 110, 253, 0.96), rgba(7, 67, 180, 0.96)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 26%);
    overflow: hidden;
}

.auth-brand-panel::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -90px;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -42px;
    top: 36px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 50%;
}

.auth-logo-box,
.auth-brand-panel h1,
.auth-brand-panel p,
.auth-brand-panel ul {
    position: relative;
    z-index: 2;
}

.auth-logo-box {
    width: 124px;
    height: 124px;
    background: #ffffff;
    border-radius: 26px;
    padding: 14px;
    margin-bottom: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}

.auth-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-brand-panel h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}

.auth-brand-panel p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 430px;
    opacity: 0.95;
}

.auth-brand-panel ul {
    margin-top: 28px;
    padding-left: 22px;
    line-height: 1.9;
    font-size: 16px;
}

.auth-form-panel {
    padding: 58px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-form-header h2 {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.auth-form-header p {
    color: #6c757d;
    margin-bottom: 0;
}

.auth-main-button {
    font-weight: 600;
    padding-top: 13px;
    padding-bottom: 13px;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.24);
}

.auth-divider {
    height: 1px;
    background: #dee2e6;
    margin: 18px 0;
}

/*
|--------------------------------------------------------------------------
| User Summary
|--------------------------------------------------------------------------
*/

.user-summary-card {
    background: #ffffff;
    border: 1px solid var(--skk-border);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

/*
|--------------------------------------------------------------------------
| Dashboard
|--------------------------------------------------------------------------
*/

.dashboard-hero {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 20px;
    padding: 30px 32px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.dashboard-hero h1 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.dashboard-hero p {
    margin-bottom: 0;
    color: #475569;
}

.dashboard-menu-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
    min-height: 190px;
    background: #ffffff;
    border: 1px solid var(--skk-border);
    border-radius: 22px;
    padding: 30px;
    text-decoration: none;
    color: #111827;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    transition: 0.18s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-menu-card::after {
    content: "";
    position: absolute;
    right: -54px;
    top: -54px;
    width: 158px;
    height: 158px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.07);
}

.dashboard-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
    color: #111827;
}

.dashboard-menu-card h5 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 8px;
}

.dashboard-menu-card p {
    margin-bottom: 0;
    color: var(--skk-muted);
    line-height: 1.6;
}

.menu-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border-radius: 18px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    position: relative;
    z-index: 2;
}

.card-action-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 800;
    color: var(--skk-primary);
}

/*
|--------------------------------------------------------------------------
| Profile
|--------------------------------------------------------------------------
*/

.profile-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--skk-border);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.profile-card-header h5 {
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-card-header p {
    color: var(--skk-muted);
    margin-bottom: 0;
}

.profile-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 16px;
    background: #eff6ff;
    color: var(--skk-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

/*
|--------------------------------------------------------------------------
| Children
|--------------------------------------------------------------------------
*/

.empty-card,
.child-card {
    background: #ffffff;
    border: 1px solid var(--skk-border);
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.empty-card {
    text-align: center;
    padding: 46px 24px;
}

.empty-icon,
.child-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #eff6ff;
    color: var(--skk-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
}

.empty-icon {
    margin: 0 auto 18px;
}

.child-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
}

.child-card h5 {
    font-weight: 800;
    margin-bottom: 6px;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.app-footer {
    margin-top: 48px;
    padding: 18px 0;
    background: #ffffff;
    border-top: 1px solid var(--skk-border);
    color: #475569;
    font-size: 14px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-brand-panel {
        padding: 38px 32px;
    }

    .auth-form-panel {
        padding: 38px 32px;
    }

    .auth-brand-panel h1 {
        font-size: 28px;
    }

    .dashboard-hero h1 {
        font-size: 23px;
    }

    .dashboard-menu-card {
        padding: 24px;
    }
}