/* Khatmah Public Styles */

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
}

.progress {
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

/* Juz Grid */
.juz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.juz-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.juz-item:hover {
    transform: translateY(-2px);
}

.juz-item h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.juz-item.available {
    border: 2px solid #4CAF50;
}

.juz-item.taken {
    border: 2px solid #2196F3;
}

.juz-item.completed {
    border: 2px solid #597E4F;
    background-color: #B5CA8D;
}

.completed {
    color: #000 !important;
    font-weight: bold;
}

/* Buttons */
.reserve-juz {
    background-color: #AC9969;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.reserve-juz:hover {
    background-color: #597E4F;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 60px !important;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Khatmah Create Form */
.khatmah-create-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.khatmah-create-form h2 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .juz-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .juz-grid {
        grid-template-columns: 1fr;
    }

    .progress-bar {
        height: 25px;
    }

    .progress-text {
        font-size: 12px;
    }
} 