/* ===== RESET ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== BASE ===== */

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
    background: #f8fafc;
    color: #334155;
    -webkit-font-smoothing: antialiased;
}

/* ===== LINKS ===== */

a {
    text-decoration: none;
    color: inherit;
}

/* ===== LAYOUT ===== */

.main {
    margin-left: 260px;
    padding: 40px;
    min-height: 100vh;
}

/* ===== NAVBAR (TOP BAR) ===== */

.top-nav {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
}

/* ===== FORMS ===== */

input {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    outline: none;
    width: 100%;
}

input:focus {
    border-color: #3b82f6;
}

/* ===== BUTTONS ===== */

button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ===== SAAS SIDEBAR ===== */

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;

    top: 0;
    left: 0;

    z-index: 1000;

    background: linear-gradient(180deg, #0f172a, #1e293b);
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 25px 15px;
}


/* LOGO */

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text span {
    font-size: 12px;
    opacity: 0.6;
}

/* NAV */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: white;
    opacity: 0.85;
    transition: 0.2s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    opacity: 1;
    transform: translateX(4px);
}

.nav-item .icon {
    width: 22px;
    text-align: center;
}

/* FOOTER */

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.user-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.avatar {
    width: 38px;
    height: 38px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* LOGOUT */

.logout-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: #ef4444;
    color: white;
    font-size: 14px;
}

.logout-btn:hover {
    background: #dc2626;
}

/* ===== UTILITY ===== */

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid {
    display: grid;
    gap: 20px;
}
