/* dashboard.css - Ultra-Premium Styles for SchoolPro Dashboards */

/* Base Wrapper */
.dashboard-wrapper {
    margin: -20px -20px 0;
    background: #f8fafc;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.dashboard-wrapper::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 40%);
    animation: rotateBg 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Animations */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

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

/* Premium Card Utility - Glassmorphism */
.premium-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
}

/* Hero Banner - Animated Primary Gradient */
div[class^="hero-banner"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    padding: 60px 20px 100px;
    color: white !important;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -25px 50px -20px rgba(0,0,0,0.25);
    border-radius: 0;
}

div[class^="hero-banner"]::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPjxyZWN0IHdpZHRoPSI0IiBoZWlnaHQ9IjQiIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
    opacity: 0.6;
    pointer-events: none;
}

div[class^="hero-banner"] h4 {
    font-size: 0.8rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    opacity: 0.95;
    color: white !important;
}

div[class^="hero-banner"] h1 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 15px;
    line-height: 1.1;
    color: white !important;
    text-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

div[class^="hero-banner"] p {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.95;
    max-width: 65%;
    margin-bottom: 25px;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Floating Menu Card */
.floating-menu-card {
    background: rgba(255, 255, 255, 0.85);
    margin: -70px 20px 30px;
    border-radius: 36px;
    padding: 35px 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.95);
    backdrop-filter: blur(25px);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-item:hover {
    transform: translateY(-8px);
}

.menu-item:active {
    transform: scale(0.92);
}

.menu-icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.menu-item:hover .menu-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(var(--primary-rgb, 59, 130, 246), 0.3);
    transform: rotate(5deg) scale(1.1);
}

.menu-label {
    font-size: 0.75rem;
    font-weight: 850;
    color: #1e293b;
    line-height: 1.2;
    letter-spacing: -0.3px;
    text-transform: none !important;
    transition: color 0.3s ease;
}

.menu-item:hover .menu-label {
    color: var(--primary);
}

.menu-desc {
    display: none;
}

/* Tangguh Alert Card */
.tangguh-alert-card {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding: 24px;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tangguh-alert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.tangguh-alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
    background-size: 200% 200%;
    animation: gradientBG 5s ease infinite;
}

.tangguh-alert-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tangguh-alert-icon {
    width: 42px;
    height: 42px;
    background: rgba(52, 211, 153, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    font-size: 1.4rem;
    border: 1px solid rgba(52, 211, 153, 0.4);
    box-shadow: 0 8px 16px rgba(52, 211, 153, 0.2);
}

.tangguh-alert-badge {
    font-size: 0.7rem;
    font-weight: 950;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 24px;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tangguh-alert-title {
    font-size: 1.05rem;
    font-weight: 900;
    margin: 0 0 8px 0;
    color: #f8fafc;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tangguh-alert-text {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.btn-tangguh-action {
    width: auto;
    box-sizing: border-box;
    background: white;
    color: #0f172a;
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 900;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

.btn-tangguh-action i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.btn-tangguh-action:hover {
    background: #f8fafc;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-tangguh-action:hover i {
    transform: translateX(4px) scale(1.1);
}

/* Utilities */
.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.clickable-schedule-row {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-schedule-row:hover {
    background: rgba(248, 250, 252, 0.8) !important;
    transform: translateX(6px);
}

/* Responsiveness */
.hide-on-mobile { display: block; }
.show-on-mobile { display: none !important; }

/* Responsive Dashboard Wrapper */
@media (max-width: 1023px) {
    .dashboard-wrapper {
        margin: -20px -15px 0 !important;
    }
}

/* Responsive Hero Slider Container */
.banner-slider-container {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 250px;
    height: 300px;
    z-index: 1;
    overflow: visible;
}

@media (max-width: 768px) {
    .banner-slider-container {
        width: 150px !important;
        height: 180px !important;
        bottom: -10px !important;
        right: -10px !important;
    }
}

@media (min-width: 992px) {
    .menu-desc {
        display: block;
        font-size: 0.65rem;
        color: #64748b;
        font-weight: 700;
        margin-top: 6px;
    }
}

@media (max-width: 576px) {
    .hide-on-mobile { display: none !important; }
    .show-on-mobile { display: inline-block !important; }
    
    div[class^="hero-banner"] {
        padding: 40px 15px 80px;
        border-radius: 0;
    }
    
    div[class^="hero-banner"] h1 {
        font-size: 1.8rem;
        letter-spacing: -1px;
    }
    
    div[class^="hero-banner"] p {
        font-size: 0.85rem;
        max-width: 90%;
    }
    
    .floating-menu-card {
        margin: -50px 15px 25px;
        padding: 25px 15px;
        border-radius: 28px;
    }
    
    .menu-grid {
        gap: 15px 8px;
    }
    
    .menu-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .premium-card {
        border-radius: 20px;
    }
    
    .tangguh-alert-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 12px;
    }
    
    .tangguh-alert-card {
        padding: 15px;
        margin-top: 15px;
        border-radius: 20px;
    }
    
    .btn-tangguh-action {
        padding: 10px 18px;
        font-size: 0.8rem;
        border-radius: 12px;
        gap: 8px;
    }
}
