/* RESET */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f1f5f9;
    overflow-x: hidden;
}

/* TOGGLE BUTTON */
.toggle-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ICON IMAGE */
.toggle-btn img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.toggle-btn img:hover {
    transform: scale(1.1);
}

/* SIDEBAR COLLAPSE */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed a span {
    display: none;
}

.sidebar.collapsed .brand {
    font-size: 14px;
    display: none;
}

.sidebar.collapsed .toggle-btn img {
    transform: rotate(180deg);
}

/* CONTENT FULL */
.content.full {
    margin-left: 70px;
}

/* SIDEBAR */
.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    color: white;
    padding-top: 20px;
    transition: all 0.3s;
}


.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    padding: 12px 20px;
    text-decoration: none;
    transition: 0.3s;
    border-left: 4px solid transparent;
}

.sidebar a:hover {
    background: #334155;
    color: #fff;
    border-left: 4px solid #3b82f6;
}

.sidebar a.active {
    background: #334155;
    color: #fff;
    border-left: 4px solid #3b82f6;
}

/* SIDEBAR HEADER */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 15px 20px;
    margin-bottom: 20px;
}

/* BRAND */
.brand {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin: 0;
    transition: 0.3s;
}

/* CONTENT */
.content {
    margin-left: 250px;
    padding: 20px;
    transition: 0.3s;
    
}

/* NAVBAR */
.navbar {
    border-radius: 10px;
}

/* CARD */
.card {
    border: none;
    border-radius: 25px;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card:hover {
    transform: translateY(-5px);
}

/* BUTTON */
.btn-primary {
    background: #3b82f6;
    border: none;
}

.btn-primary:hover {
    background: #2563eb;
}

/* SCROLLBAR (optional modern look) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.active {
        margin-left: 0;
    }

    .content {
        margin-left: 0;
    }
}
