:root {
    --primary-color: #33809c;  /* Warna default */
    --primary-dark: #163b54;
    --primary-brown: #dfb87e;
    --primary-brown-dark: #c09546;
    
    --sidebar-width: 300px;
    --transition-speed: 0.3s;
}


body {
    background-color: #f8f9fa;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}



/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    z-index: 1000;
    transition: var(--transition-speed);
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

.brand-container {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.brand-main i {
    margin-right: 10px;
    font-size: 1.6rem;
}

.brand-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
    padding-left: 2.2rem;
    line-height: 1.4;
    font-style: italic;
    border-left: 2px solid rgba(255,255,255,0.3);
    margin-left: 0.5rem;
    margin-top: 0.25rem;
}

.user-info {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.user-name {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: white;
}

.user-role {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.95;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    color: white;
    display: inline-block;
}

.sidebar-menu {
    padding: 1.25rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu::-webkit-scrollbar {
    width: 5px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    color: rgba(255,255,255,0.9);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 0 8px 8px 0;
    margin: 0 0.5rem;
}

.nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.15);
    border-left-color: rgba(255,255,255,0.5);
    transform: translateX(5px);
}

.nav-link.active {
    color: white;
    background: rgba(255,255,255,0.2);
    border-left-color: white;
    font-weight: 600;
}

.nav-link i {
    width: 26px;
    margin-right: 12px;
    font-size: 1.1rem;
    text-align: center;
}

.nav-link span {
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

.logout-btn {
    padding: 0.5rem;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.logout-btn .nav-link {
    border-left: none;
    margin: 0;
    border-radius: 8px;
}

.logout-btn .nav-link:hover {
    background: rgba(238, 61, 61, 0.72);
    transform: none;
}

/* Main Content Styles */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 1.5rem;
    min-height: 100vh;
    transition: var(--transition-speed);
}

.page-header {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
}

.page-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    font-size: 1.75rem;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.content-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Mobile Toggle Button */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Developer credit style */
.developer-credit {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: center;
    padding: 0.5rem;
    color: rgba(255,255,255,0.8);
    font-style: italic;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        width: 300px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.25rem;
    }
    
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content.shifted {
        margin-left: 0;
    }
    
    .page-header, .content-card {
        padding: 1.25rem;
    }
    
    .brand-main {
        font-size: 1.4rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        max-width: 300px;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .brand-main {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .brand-container {
        text-align: center;
    }
    
    .brand-main {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .brand-main i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .brand-subtitle {
        padding-left: 0;
        border-left: none;
        text-align: center;
        margin-left: 0;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 0.5rem;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}




