:root {
    --pramuka-brown: #8B4513;
    --pramuka-green: #006633;
    --pramuka-gold: #FFD700;
    --sidebar-width: 280px;
    --primary-color: #4e73df;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --sidebar-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --sidebar-hover: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fc;
}

/* Login Page */
.bg-gradient-pramuka {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.btn-pramuka {
    background: linear-gradient(135deg, #4e73df, #224abe);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-pramuka:hover {
    background: linear-gradient(135deg, #224abe, #1a3a8a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
    color: white;
}

.text-brown {
    color: var(--pramuka-brown);
}

/* Sidebar - Cerah dan Menarik */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.sidebar-brand {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-brand img {
    width: 55px;
    margin-bottom: 10px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.sidebar-brand img:hover {
    transform: scale(1.1);
}

.sidebar-brand h5 {
    font-size: 18px;
    margin: 0;
    color: var(--pramuka-gold);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.sidebar-menu {
    padding: 15px 0;
}

.sidebar-menu .nav-item {
    margin: 3px 15px;
}

.sidebar-menu .nav-link {
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.sidebar-menu .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--pramuka-gold);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
    background: var(--sidebar-hover);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-menu .nav-link:hover::before,
.sidebar-menu .nav-link.active::before {
    transform: scaleY(1);
}

.sidebar-menu .nav-link i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar-menu .nav-link:hover i {
    transform: scale(1.2);
}

/* Submenu */
.sidebar-menu .submenu {
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 5px 0;
}

.sidebar-menu .submenu .nav-link {
    font-size: 13px;
    padding: 10px 15px;
    border-radius: 8px;
}

/* Collapse animation */
.sidebar-menu .collapse {
    transition: all 0.3s ease;
}

/* Badge Notifikasi di Sidebar */
.sidebar .badge {
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Sidebar Footer */
.sidebar-footer {
    position: sticky;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    backdrop-filter: blur(10px);
}

.sidebar-footer img {
    border: 2px solid var(--pramuka-gold);
    transition: transform 0.3s ease;
}

.sidebar-footer img:hover {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 25px;
    min-height: 100vh;
    transition: all 0.3s ease;
    background: #f8f9fc;
}

/* Top Navigation */
.top-nav {
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: white;
    border-bottom: 1px solid #e3e6f0;
    border-radius: 15px 15px 0 0 !important;
}

/* Stats Cards */
.stats-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.stats-card .card-body {
    padding: 25px;
    position: relative;
    z-index: 1;
}

.stats-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.stats-icon {
    font-size: 45px;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #1cc88a 0%, #13855c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f6c23e 0%, #dda20a 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #be2617 100%);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #4e73df;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    color: #5a5c69;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fc;
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #d1d3e2;
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-control:focus, .form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-label {
    font-weight: 600;
    color: #5a5c69;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 12px;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #4e73df;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #858796;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 10px;
    background: #eaecf4;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    padding: 15px;
    border-left: 3px solid #4e73df;
    margin-bottom: 15px;
    position: relative;
    background: #f8f9fc;
    border-radius: 0 10px 10px 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 13px;
    height: 13px;
    background: #4e73df;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -280px;
        box-shadow: none;
    }
    
    .sidebar.active {
        margin-left: 0;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.active {
        margin-left: var(--sidebar-width);
    }
    
    .stats-card {
        margin-bottom: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Print Styles */
@media print {
    .sidebar, .top-nav, .btn, .no-print {
        display: none !important;
    }
    
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 12px;
    border-bottom: 1px solid #eaecf4;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #f8f9fc;
}

.activity-item:last-child {
    border-bottom: none;
}