/* ===== Quran Khatm - Frontend Styles ===== */

.qkg-khatm-wrapper {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.qkg-khatm-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

.qkg-khatm-description {
    font-size: 15px;
    line-height: 1.9;
    color: #4b5563;
    margin-bottom: 20px;
}

.qkg-progress-info {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    color: #1e3a8a;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}
.qkg-progress-wrap{
    background: #e5e7eb;
    border-radius: 999px;
}
.qkg-progress-bar {
    width: 100%;
    height: 14px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 999px;
    overflow: hidden;
    margin: 12px 0 20px;
}

.qkg-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.qkg-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.qkg-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qkg-form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.qkg-form input[type="text"],
.qkg-form input[type="tel"],
.qkg-form input[type="email"],
.qkg-form input[type="number"],
.qkg-form select,
.qkg-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qkg-form input:focus,
.qkg-form select:focus,
.qkg-form textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.qkg-btn,
.qkg-form button,
.qkg-submit-btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
}

.qkg-btn:hover,
.qkg-form button:hover,
.qkg-submit-btn:hover {
    background: #1d4ed8;
}

.qkg-btn:active,
.qkg-form button:active,
.qkg-submit-btn:active {
    transform: translateY(1px);
}

.qkg-btn-secondary {
    background: #6b7280;
}

.qkg-btn-secondary:hover {
    background: #4b5563;
}

.qkg-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.qkg-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.qkg-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.qkg-khatm-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.qkg-khatm-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.qkg-khatm-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #111827;
}

.qkg-khatm-card p {
    margin: 0 0 8px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}

.qkg-khatm-card .qkg-meta {
    font-size: 13px;
    color: #6b7280;
}

.qkg-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.qkg-table th,
.qkg-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
    font-size: 14px;
}

.qkg-table th {
    background: #f9fafb;
    font-weight: 700;
    color: #374151;
}

.qkg-table tr:hover td {
    background: #f9fafb;
}

.qkg-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #eef2ff;
    color: #3730a3;
}

.qkg-badge-success {
    background: #dcfce7;
    color: #166534;
}

.qkg-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.qkg-empty {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .qkg-khatm-wrapper {
        padding: 14px;
        margin: 10px;
    }

    .qkg-khatm-title {
        font-size: 20px;
    }

    .qkg-table th,
    .qkg-table td {
        padding: 10px;
        font-size: 13px;
    }

    .qkg-btn,
    .qkg-form button,
    .qkg-submit-btn {
        width: 100%;
        text-align: center;
    }
}
