/* ======== Certificate Request System — Student Frontend Styles ======== */

.arha-cert-trigger-wrapper {
    margin: 25px auto 10px;
    text-align: center;
}

.arha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    line-height: 1.2;
}

.arha-btn-apply {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
}
.arha-btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, .45);
    color: #fff;
}

.arha-btn-track {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .35);
}
.arha-btn-track:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, .45);
    color: #fff;
}

.arha-btn-download {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    margin-top: 15px;
    display: inline-flex;
}
.arha-btn-download:hover {
    transform: scale(1.03);
    color: #fff;
}

.arha-btn-submit {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
    width: 100%;
    padding: 14px;
    font-size: 17px;
}
.arha-btn-submit:hover:not(:disabled) {
    background: #10b981;
    color: #fff;
}
.arha-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Modal Overlay */
.arha-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    animation: arhaFadeIn .25s ease-out;
}

@keyframes arhaFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.arha-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: arhaScaleUp .25s ease-out;
    position: relative;
}

@keyframes arhaScaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.arha-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 20px 20px 0 0;
}

.arha-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.arha-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0 5px;
    transition: color .2s;
}
.arha-modal-close:hover {
    color: #ef4444;
}

.arha-modal-body {
    padding: 24px;
}

/* Form Groups */
.arha-form-group {
    margin-bottom: 20px;
}

.arha-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.arha-req {
    color: #ef4444;
}

.arha-input,
.arha-file-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.arha-input:focus,
.arha-file-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Error State */
.arha-input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.arha-error-msg {
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
}

.arha-help-text {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.4;
}

/* Radio Options */
.arha-radio-option {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.arha-radio-option:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}
.arha-radio-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}
.arha-radio-option input[type="radio"] {
    accent-color: #2563eb;
    width: 18px;
    height: 18px;
}
.arha-radio-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #1e293b;
}

/* Receipt Notice */
.arha-receipt-notice {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 10px;
}

.arha-warning-note {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #92400e;
    margin-top: 10px;
    line-height: 1.4;
}

/* Alerts */
.arha-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}
.arha-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.arha-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.arha-alert-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #075985;
}

/* Status View */
.arha-status-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
}
.arha-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.arha-status-num {
    font-size: 17px;
    color: #334155;
}
.arha-status-pill {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}
.arha-pill-pending {
    background: #fef3c7;
    color: #92400e;
}
.arha-pill-approved {
    background: #dcfce7;
    color: #166534;
}
.arha-pill-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.arha-status-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #475569;
}
.arha-status-details strong {
    color: #0f172a;
}
.arha-status-message-box {
    margin-top: 18px;
}

/* Spinner */
.arha-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: #fff;
    animation: arhaSpin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes arhaSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .arha-modal-card { border-radius: 14px; margin: 10px; }
    .arha-modal-header { padding: 15px 18px; }
    .arha-modal-body { padding: 18px 16px; }
    .arha-btn { padding: 10px 20px; font-size: 15px; }
}

/* Bank Details Box */
.arha-bank-details-box {
    margin-bottom: 20px;
    animation: arhaSlideDown 0.3s ease-out;
}

@keyframes arhaSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.arha-bank-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.arha-bank-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d1fae5;
}

.arha-bank-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #065f46;
}

.arha-bank-icon {
    font-size: 18px;
}

.arha-bank-content {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.arha-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    flex-wrap: wrap;
    gap: 5px;
}

.arha-bank-label {
    color: #047857;
    font-weight: 600;
}

.arha-bank-value {
    color: #064e3b;
    font-weight: 700;
}

.arha-copyable-acc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.arha-acc-number {
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 15px;
    letter-spacing: 0.5px;
    background: #ffffff;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px dashed #6ee7b7;
    color: #065f46;
}

.arha-btn-copy {
    background: #ffffff;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.arha-btn-copy:hover {
    background: #ecfdf5;
    border-color: #34d399;
    color: #065f46;
}

.arha-btn-copy.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.arha-bank-amount {
    font-size: 15px;
    color: #059669;
    background: #d1fae5;
    padding: 2px 10px;
    border-radius: 6px;
}

.arha-bank-footer-tip {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #d1fae5;
    font-size: 12.5px;
    color: #047857;
    line-height: 1.4;
}

.arha-radio-option.selected {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

