/* CPR Student Dashboard Styles */
.cpr-student-wrap {
    font-family: inherit;
    color: #1e293b;
    margin-top: 10px;
}

.cpr-student-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 28px 32px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cpr-student-header h2 {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
}

.cpr-student-header p {
    color: #e0f2fe;
    font-size: 14px;
    margin: 0;
}

.cpr-wallet-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 20px;
    border-radius: 12px;
    text-align: right;
}

.cpr-wallet-pill-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}

.cpr-wallet-pill-value {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
}

/* KPI Cards Grid */
.cpr-student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.cpr-student-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cpr-student-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.cpr-scard-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 6px;
}

.cpr-scard-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.cpr-scard-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Dual Column Layout (Withdrawal Form + History) */
.cpr-student-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .cpr-student-layout {
        grid-template-columns: 1fr;
    }
}

.cpr-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.cpr-box-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Withdrawal Form */
.cpr-sform-group {
    margin-bottom: 16px;
}

.cpr-sform-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.cpr-sinput, .cpr-sselect {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    transition: border-color 0.15s ease;
}

.cpr-sinput:focus, .cpr-sselect:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
}

.cpr-student-wrap .cpr-sbtn,
button.cpr-sbtn,
.cpr-sbtn {
    width: 100% !important;
    padding: 12px 20px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    height: auto !important;
}

.cpr-student-wrap .cpr-sbtn:hover,
button.cpr-sbtn:hover,
.cpr-sbtn:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px);
}

.cpr-student-wrap .cpr-sbtn:disabled,
button.cpr-sbtn:disabled,
.cpr-sbtn:disabled {
    background: #94a3b8 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Tables */
.cpr-stable {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.cpr-stable th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    text-transform: uppercase;
    text-align: left;
}

.cpr-stable td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

/* Tabs Segmented Control */
.cpr-student-wrap .cpr-stabs,
.cpr-stabs {
    display: inline-flex !important;
    background: #f1f5f9 !important;
    padding: 4px !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    margin-bottom: 20px !important;
    gap: 4px !important;
}

.cpr-student-wrap .cpr-stabs .cpr-stab-btn,
.cpr-student-wrap button.cpr-stab-btn,
button.cpr-stab-btn,
.cpr-stab-btn {
    background: transparent !important;
    color: #64748b !important;
    border: none !important;
    outline: none !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    height: auto !important;
}

.cpr-student-wrap .cpr-stabs .cpr-stab-btn:hover,
.cpr-student-wrap button.cpr-stab-btn:hover,
button.cpr-stab-btn:hover,
.cpr-stab-btn:hover {
    color: #1e293b !important;
    background: rgba(255, 255, 255, 0.7) !important;
}

.cpr-student-wrap .cpr-stabs .cpr-stab-btn.is-active,
.cpr-student-wrap button.cpr-stab-btn.is-active,
button.cpr-stab-btn.is-active,
.cpr-stab-btn.is-active {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
}

.cpr-stab-pane {
    display: none;
}

.cpr-stab-pane.is-active {
    display: block;
}

/* Badges */
.cpr-sbadge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.cpr-sbadge-pending  { background: #fef3c7; color: #b45309; }
.cpr-sbadge-approved { background: #e0f2fe; color: #0369a1; }
.cpr-sbadge-paid     { background: #dcfce7; color: #15803d; }
.cpr-sbadge-rejected { background: #fee2e2; color: #b91c1c; }

/* Custom Centered Modal Dialog */
.cpr-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.5) !important;
    backdrop-filter: blur(3px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cpr-modal-overlay.is-open {
    opacity: 1;
}

.cpr-modal-box {
    background: #ffffff !important;
    border-radius: 5px !important;
    padding: 26px 28px !important;
    width: 90% !important;
    max-width: 420px !important;
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.25) !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border: 1px solid #e2e8f0 !important;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cpr-modal-overlay.is-open .cpr-modal-box {
    transform: scale(1);
}

.cpr-modal-icon {
    margin-bottom: 14px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.cpr-modal-icon svg {
    display: block !important;
    margin: 0 auto !important;
}

.cpr-modal-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
}

.cpr-modal-text {
    font-size: 13.5px !important;
    color: #475569 !important;
    line-height: 1.55 !important;
    margin: 0 0 22px 0 !important;
}

.cpr-modal-btn,
button.cpr-modal-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 10px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    display: inline-block !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25) !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.cpr-modal-btn:hover,
button.cpr-modal-btn:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px);
}
