﻿/* ==========================================================
   SkillERP Professional Theme
   Version : 1.0
   ========================================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1E3A8A;
    --primary-light: #2563EB;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    --sidebar: #0F172A;
    --background: #F4F7FC;
    --card: #FFFFFF;
    --text: #1E293B;
    --border: #E5E7EB;
    --surface-muted: #F8FAFF;
    --shadow-soft: 0 12px 32px rgba(15, 23, 42, .07);
    --shadow-hover: 0 18px 36px rgba(30, 58, 138, .14);
}

/* ========================================================== */

body {
    font-family: 'Poppins',sans-serif;
    background: radial-gradient(circle at 90% 0%, #e8f0ff 0, transparent 26%), var(--background);
    color: var(--text);
}

/* ========================================================== */
/* NAVBAR */
/* ========================================================== */

.main-header {
    min-height: 60px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid rgba(203, 213, 225, .7);
    box-shadow: 0 3px 18px rgba(15,23,42,.05);
    backdrop-filter: blur(12px);
}

.main-header .nav-link { color: #52627a; font-size: 13px; }
.main-header .navbar-nav:first-child .nav-link { color: #1e3a8a; }

/* ========================================================== */
/* SIDEBAR */
/* ========================================================== */

.main-sidebar {
    background: linear-gradient(180deg, #111d36 0%, #172338 48%, #0c1526 100%) !important;
    box-shadow: 8px 0 28px rgba(15, 23, 42, .14);
}

.brand-link {
    background: linear-gradient(135deg, #1d2f63, #111d36);
    color: white !important;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 18px;
}

    .brand-link:hover {
        color: white;
    }

/* Sidebar profile action */
.profile-brand-link {
    display: flex !important;
    align-items: center;
    min-height: 76px;
    padding: 11px 14px !important;
    text-align: left !important;
    transition: background .2s ease;
}

.profile-brand-link:hover {
    background: linear-gradient(135deg, #284b9d, #1e3a8a) !important;
}

.profile-brand-photo,
.profile-brand-placeholder {
    display: inline-flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 5px 15px rgba(0,0,0,.22);
    color: #fff;
    object-fit: cover;
}

.profile-brand-placeholder {
    font-size: 18px;
}

.profile-brand-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    margin-left: 10px;
}

.profile-brand-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.profile-brand-subtitle {
    overflow: hidden;
    margin-top: 3px;
    color: rgba(255, 255, 255, .68);
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: none;
    white-space: nowrap;
}

.profile-brand-arrow {
    margin-left: 6px;
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
}

.sidebar .nav-link {
    color: #cbd5e1;
    border: 1px solid transparent;
    border-radius: 10px;
    margin: 5px 10px;
    padding: 10px 12px;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

    .sidebar .nav-link:hover {
        background: rgba(75, 125, 255, .18);
        border-color: rgba(147, 197, 253, .16);
        color: white;
        transform: translateX(3px);
    }

    .sidebar .nav-link.active {
        background: linear-gradient(100deg, #2563eb, #315bd2);
        box-shadow: 0 7px 16px rgba(23, 75, 204, .28);
        color: white;
    }

.sidebar .nav-link.disabled { cursor: not-allowed; opacity: .53; }
.sidebar .nav-link.disabled:hover { background: transparent; border-color: transparent; transform: none; }

.nav-icon {
    margin-right: 8px;
}

/* ========================================================== */
/* CONTENT */
/* ========================================================== */

.content-wrapper {
    background: transparent;
    min-height: calc(100vh - 60px);
}

.content { padding-top: 12px; }

/* ========================================================== */
/* CARDS */
/* ========================================================== */

.card {
    border: 1px solid rgba(226,232,240,.85);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover { box-shadow: var(--shadow-hover); }

.card-header {
    background: linear-gradient(180deg, #fff, #fbfdff);
    border-bottom: 1px solid rgba(226,232,240,.9);
    border-radius: 16px 16px 0 0 !important;
    font-weight: 600;
}

/* ========================================================== */
/* BUTTON */
/* ========================================================== */

.btn {
    border-radius: 10px;
    padding: 8px 18px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(15,23,42,.08);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover { box-shadow: 0 8px 16px rgba(15,23,42,.13); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary);
    border: none;
}

    .btn-primary:hover {
        background: var(--primary-light);
    }

.btn-success {
    border: none;
}

/* ========================================================== */
/* TABLE */
/* ========================================================== */

.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

    .table thead {
        background: #EEF4FF;
    }

    .table th {
        border: none;
        font-weight: 600;
    }

    .table td {
        vertical-align: middle;
    }

/* ========================================================== */
/* FORM */
/* ========================================================== */

.form-control {
    border-radius: 10px;
    border: 1px solid var(--border);
    height: 45px;
    background: #fbfdff;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

    .form-control:focus {
        background: #fff;
        border-color: var(--primary-light);
        box-shadow: 0 0 0 .15rem rgba(37,99,235,.15);
    }

.form-select {
    border-radius: 10px;
}

/* ========================================================== */
/* FOOTER */
/* ========================================================== */

.main-footer {
    background: rgba(255,255,255,.86);
    border-top: 1px solid rgba(226,232,240,.9);
    color: #718096;
    font-size: 12px;
}

/* ========================================================== */
/* BADGES */
/* ========================================================== */

.badge {
    padding: 7px 12px;
    border-radius: 30px;
}

/* ========================================================== */
/* SCROLLBAR */
/* ========================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(#94A3B8, #64748B);
    border-radius: 20px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
