/* SIGASIH Design System - Premium Bootstrap 5 Custom Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    --secondary: #0d9488;
    --secondary-gradient: linear-gradient(135deg, #0d9488 0%, #10b981 100%);
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --sidebar-width: 260px;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}

html {
    font-size: 15px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f1f5f9;
    color: #1e293b;
    overflow-x: hidden;
}

/* Background Gradients for Guest Pages */
.auth-bg {
    background: radial-gradient(circle at 10% 20%, rgba(216, 241, 230, 0.46) 0.1%, rgba(233, 226, 226, 0.28) 90.1%),
                linear-gradient(135deg, #e0e7ff 0%, #ccfbf1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-bg::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.15;
    top: -50px;
    right: -50px;
    filter: blur(50px);
}

.auth-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--secondary-gradient);
    opacity: 0.15;
    bottom: -100px;
    left: -100px;
    filter: blur(60px);
}

/* Glassmorphism Card styling */
.glass-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Custom Buttons */
.btn-primary-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, #4338ca 0%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-secondary-gradient {
    background: var(--secondary-gradient);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-secondary-gradient:hover {
    background: linear-gradient(135deg, #0f766e 0%, #059669 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
    color: white;
}

/* Form Controls styling */
.form-control, .form-select {
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background-color: #ffffff;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--dark);
    color: white;
    transition: all 0.3s ease;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.sidebar::-webkit-scrollbar,
.sidebar *::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.sidebar .nav-link {
    color: #cbd5e1;
    padding: 10px 16px;
    margin: 4px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar .text-muted {
    color: #94a3b8 !important;
}

.sidebar div.text-uppercase.text-muted {
    color: #cbd5e1 !important;
    opacity: 0.85;
}

.sidebar .nav-link.active {
    color: white;
    background: var(--primary-gradient);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.sidebar-brand {
    padding: 20px 16px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar .border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.main-content.no-sidebar {
    margin-left: 0;
    max-width: 1400px;
    margin-right: auto;
    margin-left: auto;
    padding: 24px 20px 50px 20px;
}

/* Navbar Style */
.top-navbar {
    position: relative;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 14px 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.dropdown-menu {
    z-index: 1060 !important;
}

/* Custom Sleek Scrollbar for Notifications & Lists */
.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f8fafc;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Notification Dropdown Custom Design */
.notification-dropdown-menu {
    width: 380px;
    max-width: calc(100vw - 30px);
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.05) !important;
    padding: 0 !important;
    overflow: hidden;
    z-index: 1070 !important;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notification-item {
    transition: all 0.15s ease;
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.notification-item:hover {
    background-color: #f8fafc;
}
.notification-item.unread {
    background-color: #f0f7ff;
}
.notification-item.unread:hover {
    background-color: #e2effe;
}
.notification-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

/* Cards & Badges styling */
.premium-card {
    background: white;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.badge-gradient-primary {
    background: var(--primary-gradient);
}
.badge-gradient-secondary {
    background: var(--secondary-gradient);
}
.badge-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}
.badge-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.badge-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}
.badge-gradient-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0369a1 100%);
}

.rounded-pill-custom {
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Dashboard Statistic Card Custom styling */
.stat-card {
    position: relative;
    padding: 24px;
    border-radius: var(--border-radius);
    background: white;
    border: none;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.04);
    top: -20px;
    right: -20px;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.08);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Modal Styling */
.modal-content-custom {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* responsive */
@media (max-width: 991.98px) {
    .sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .sidebar.show {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
}
