/* Global Styles */
body {
    font-family: 'Quicksand', sans-serif;
    background: #f5f7fb;
    margin: 0;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar-left {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    padding: 30px 20px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-left h4 {
    font-weight: 700;
    margin-bottom: 40px;
    color: #333;
}

.nav-link-modul {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-weight: 500;
    background: #f0f1f5;
    color: #333;
    text-decoration: none;
    transition: 0.3s ease;
}

.nav-link-modul:hover {
    background: #6366f1;
    color: #fff;
}

.main-content {
    margin-left: 300px;
    flex: 1;
    padding: 0px;
    transition: margin-left 0.3s ease;
}

.hamburger {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sidebar-left {
        transform: translateX(-100%);
    }

    .sidebar-left.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 0px 20px 20px 20px;
    }

    .hamburger {
        display: block;
    }
}

.greeting-bar {
    background: white;
    height: 60px;
    padding-left: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;

    z-index: 10;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.greeting-bar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.greeting-bar h2,
.greeting-bar p {
    margin: 0;
    font-size: 15px;
    color: #333;
    line-height: 1;
}




@media (max-width: 768px) {
    .greeting-bar {
        height: 200px;
        max-width: 600px;
        padding: 40px 20px;
        width: 100%;
        margin: -100px auto;
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
        text-align: center;

        /* Menghilangkan fixed position di mobile */
        position: static;
    }

    .greeting-bar img {
        width: 80px;
        height: 80px;
    }

    .greeting-bar h2 {
        font-size: 16px;
    }

    .greeting-bar p {
        font-size: 14px;
    }
}









/* Adjust margin-top to create space below the fixed header */
.main-content {
    margin-top: 100px;
}

/* Event Card Styles */
.event-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-card img {
    width: 100%;
    height: 12rem;
    object-cover: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.event-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.event-card p {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.event-card .btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    background-color: #10b981;
    color: white;
    transition: 0.3s ease;
}

.event-card .btn:hover {
    background-color: #059669;
}

.event-card .btn-disabled {
    background-color: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.event-card .btn-disabled:hover {
    background-color: #d1d5db;
}


