* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #4169E1 50%, #1E90FF 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: #ffffff;
}

/* Animated Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: #ff0000ff;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: #00ffeeff;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: #fad000ff;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 70px;
    height: 70px;
    background: #f00014ff;
    bottom: 30%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideInDown 1s ease-out;
}

.header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    font-weight: 400;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo styles */
.header-logo {
    height: 160px;
    width: auto;
    border-radius: 8px;
    margin-right: 0px;
    box-shadow: 0 0px 0px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .header-logo {
        margin: 20px 0 0 0;
        height: 200px;
    }
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-tab {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.nav-tab:hover, .nav-tab.active {
    background: rgba(255,255,255,0.9);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-tab.back-button {
    /* All the same properties as .nav-tab */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none; /* For <a> tag version */
}

/* If using <a> tag */
a.nav-tab.back-button {
    text-decoration: none;
}

/* Optional: Add arrow animation */
.nav-tab.back-button:hover i {
    transform: translateX(-3px);
    transition: transform 0.2s ease;
}

/* Content Cards */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: block;
}

.biaya-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.biaya-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.card-header h2 {
    color: #667eea;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-header .icon {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 10px;
}

/* Tingkat Sections */
.tingkat-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    border-radius: 15px;
    border-left: 5px solid #4ecdc4;
}

.tingkat-title {
    color: #4ecdc4;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tingkat-title i {
    font-size: 1.2rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.biaya-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.biaya-table th {
    background: linear-gradient(to bottom, #f8fafc 0%, #f1f5f9 100%);
    color: #2d3748;
    border-bottom: 2px solid #e2e8f0;
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.biaya-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
    transition: all 0.3s ease;
}

.biaya-table tr:hover td {
    background: #f8f9ff;
    transform: scale(1.02);
}

.price-cell {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 1.1rem;
}

.student-count {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.subject-count {
    background: linear-gradient(135deg, #ffe66d 0%, #ffb347 100%);
    color: #333;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.meeting-count {
    background: linear-gradient(135deg, #ff8b94 0%, #ff6b6b 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .biaya-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .nav-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .nav-tab, 
    .nav-tab.back-button {
        width: 80%; /* Lebih fleksibel dari fixed 200px */
        max-width: 250px; /* Batas maksimal lebar */
        text-align: center;
        margin-right: 0 !important; /* Override margin auto */
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .nav-tab.back-button {
        order: -1; /* Pastikan tombol kembali di atas */
    }
    
    .biaya-table th,
    .biaya-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
}

/* Fun Interactive Elements */
.fun-element {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.fun-element:hover {
    animation: spin 0.5s linear;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Contact Info */
.contact-info {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-item {
    display: inline-block;
    margin: 5px 15px;
    color: #333;
    font-weight: 500;
}

.contact-item i {
    color: #4ecdc4;
    margin-right: 8px;
}