/* ==========================================
   BAKEBLOOM MASTER STYLESHEET (RESPONSIVE)
   ========================================== */

/* --- Reset & Basic Setup --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fcf8f6;
    color: #4a3b32;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    width: 90%;
    margin: 20px auto;
    padding: 20px 0;
}

/* --- Soft Card Styling --- */
.soft-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(168, 88, 106, 0.08);
}

/* --- Buttons --- */
.btn-pink,
.btn-add-class {
    display: inline-block;
    background-color: #b86b7d;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-pink:hover,
.btn-add-class:hover {
    background-color: #9e4b5d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 107, 125, 0.2);
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: #ffffff;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: #b86b7d;
    text-decoration: none;
}

/* Desktop Navigation */
header nav {
    background: #fbe3e8;
    padding: 8px 20px;
    border-radius: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

header nav a {
    text-decoration: none;
    color: #5c433c;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 6px 14px;
    border-radius: 20px;
}

header nav a:hover,
header nav a.active {
    background-color: #ffffff;
    color: #b86b7d;
}

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background-color: #b86b7d;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- GRID FOR CLASSES & GALLERY --- */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #fff5f7;
    border: 1px solid #f2e3e5;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: #4a3b32;
    margin: 10px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    color: #a8586a;
    font-size: 28px;
    text-align: center;
    margin-bottom: 10px;
}

.section-sub {
    color: #8c7365;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
}

/* --- ADMIN STATUS BADGES --- */
.badge-pending { background: #fff3cd; color: #856404; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-accepted { background: #d4edda; color: #155724; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-rejected { background: #f8d7da; color: #721c24; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }

/* --- FORM CONTROLS --- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ebd2d8;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
}

/* ==========================================
   MEDIA QUERY: MOBILE RESPONSIVE (Skrin <= 768px)
   ========================================== */
@media (max-width: 768px) {
    /* Tunjukkan butang hamburger */
    .hamburger {
        display: flex;
    }

    /* Ubah Navigasi jadi Menu Dropdown Mudah Alih */
    header nav {
        display: none; /* Disembunyikan secara lalai sebelum ikon ditekan */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        gap: 10px;
        border-radius: 0 0 20px 20px;
    }

    /* Kelas aktif apabila butang hamburger ditekan melalui JS */
    header nav.active {
        display: flex;
    }

    header nav a {
        font-size: 15px;
        width: 90%;
        text-align: center;
        padding: 10px 0;
        border-radius: 10px;
    }

    header nav a:hover,
    header nav a.active {
        background-color: #fbe3e8;
        color: #b86b7d;
    }

    .class-grid {
        grid-template-columns: 1fr;
    }

    .soft-card {
        padding: 20px;
    }
}