/* frontend/css/style.css */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #F0F9FF;
}

/* Mengelola tampilan page dan subpage */
.page, .subpage {
    display: none;
}

.page.active, .subpage.active {
    display: block;
}

/* tab-content akan diatur display-nya secara terpisah di JS */
.tab-content {
    display: none;
}

.tab-btn.active {
    border-color: #3B82F6;
    background-color: #BFDBFE;
    color: #1E40AF;
}

/* Style untuk modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #6B7280;
}

/* Style untuk Tahfiz */
.ayat-char {
    display: inline-block;
    padding: 5px 2px;
    margin: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ayat-char:hover {
    background-color: #dbeafe;
}

.ayat-char.selected {
    background-color: #60a5fa;
    color: white;
}

.phrase-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-radius: 6px;
    background-color: #f1f5f9;
}

.play-button {
    background-color: #3b82f6;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.play-button:hover {
    background-color: #2563eb;
}

.active-ayat {
    border: 2px solid #2563eb;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    transform: scale(1.02);
    transition: all 0.3s ease-in-out;
}

/* Custom Toast Notification Styles */
#toast-notification-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(20px);
    min-width: 250px;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Custom progress bar styles */
.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar {
    height: 15px;
    background-color: #4CAF50; /* Green */
    width: 0%;
    border-radius: 5px;
    text-align: center;
    color: white;
    font-size: 10px;
    line-height: 15px;
    transition: width 0.5s ease-in-out;
}

/* Custom gradient classes for menu cards */
/* Berat Badan gradient */
.bg-gradient-from-blue-400-to-cyan-500 {
    background: linear-gradient(to bottom right, #60a5fa, #06b6d4);
}

/* Tinggi Badan gradient */
.bg-gradient-from-green-400-to-emerald-500 {
    background: linear-gradient(to bottom right, #4ade80, #10b981);
}

/* Hafalan Surat gradient */
.bg-gradient-from-purple-400-to-violet-500 {
    background: linear-gradient(to bottom right, #a78bfa, #8b5cf6);
}

/* Alat Bantu Tahfiz gradient */
.bg-gradient-from-indigo-500-to-blue-600 {
    background: linear-gradient(to bottom right, #6366f1, #2563eb);
}

/* Belajar Kosakata gradient */
.bg-gradient-from-teal-400-to-cyan-500 {
    background: linear-gradient(to bottom right, #2dd4bf, #06b6d4);
}

/* Game Matematika gradient */
.bg-gradient-from-amber-400-to-orange-500 {
    background: linear-gradient(to bottom right, #fbbf24, #f97316);
}

/* Dongeng Teladan gradient */
.bg-gradient-from-orange-400-to-yellow-500 {
    background: linear-gradient(to bottom right, #fb923c, #eab308);
}

/* Game Multiplayer gradient */
.bg-gradient-from-pink-500-to-purple-600 {
    background: linear-gradient(to bottom right, #ec4899, #9333ea);
}
