/**
 * Shortcode styles for Masjid Donasi plugin
 *
 * @package Masjid_Donasi
 */

/* Status checker */
.masjid-donasi-status-checker {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.status-checker-title {
    margin: 0 0 8px;
    font-size: 24px;
    color: #1f2937;
    text-align: center;
}

.status-checker-description {
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
}

/* Form styles */
.donation-status-form .form-group {
    margin-bottom: 20px;
}

.donation-status-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
}

.donation-status-form label .required {
    color: #dc2626;
}

.donation-status-form input[type="email"],
.donation-status-form input[type="number"],
.donation-status-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.donation-status-form input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Canvas Captcha */
.captcha-canvas-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

#captcha-canvas {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    flex: 1;
    max-width: 200px;
    height: 60px;
}

.captcha-group .captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.captcha-question {
    flex: 1;
    padding: 12px 16px;
    background: #f0fdfa;
    border: 2px solid #0d9488;
    border-radius: 8px;
    font-weight: 600;
    color: #0d9488;
}

.refresh-captcha {
    width: 44px;
    height: 44px;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
    flex-shrink: 0;
}

.refresh-captcha:hover {
    border-color: #0d9488;
    color: #0d9488;
    background: #f0fdfa;
}

/* Submit button */
.btn-check-status {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
}

.btn-check-status:hover {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    transform: translateY(-1px);
}

.btn-check-status:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Result section */
.donation-status-result {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.donations-count {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

/* Donations table */
.donations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.donations-table th {
    text-align: left;
    padding: 12px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
}

.donations-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
}

.donations-table tbody tr:hover {
    background: #f9fafb;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* No donations message */
.no-donations {
    text-align: center;
    color: #6b7280;
    padding: 32px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Error message */
.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
    .masjid-donasi-status-checker {
        padding: 24px 16px;
        margin: 0 -16px;
        border-radius: 0;
    }

    .donations-table {
        display: block;
        overflow-x: auto;
    }

    .donations-table th,
    .donations-table td {
        padding: 8px;
        white-space: nowrap;
    }
}