/* Oasis Canadian Schools Portal & Dashboard Styles */
.ocs-portal-container {
    max-width: 1000px;
    margin: 30px auto;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
}

.ocs-brand-badge {
    display: inline-block;
    background: #e02424;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Lookup / Login Card */
.ocs-lookup-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.ocs-lookup-header h2 {
    margin: 0 0 10px 0;
    color: #0f172a;
    font-size: 26px;
    font-weight: 700;
}

.ocs-lookup-header p {
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.6;
}

.ocs-input-group {
    margin-bottom: 18px;
}

.ocs-input-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
}

.ocs-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.ocs-input-group input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.ocs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}

.ocs-btn-primary {
    background: #0284c7;
    color: #ffffff !important;
}

.ocs-btn-primary:hover {
    background: #0369a1;
}

.ocs-btn-secondary {
    background: #f1f5f9;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

.ocs-btn-secondary:hover {
    background: #e2e8f0;
}

.ocs-btn-pay {
    background: #059669;
    color: #ffffff !important;
    font-size: 16px;
    padding: 14px 28px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.ocs-btn-pay:hover {
    background: #047857;
}

/* Quick Learner Helper */
.ocs-quick-learner-helper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

.ocs-quick-learner-helper summary {
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
}

.ocs-quick-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ocs-quick-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #334155;
    transition: all 0.15s;
}

.ocs-quick-pill:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

/* Dashboard Top User Bar */
.ocs-top-userbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 12px 12px 0 0;
    font-size: 13px;
}

.ocs-top-userbar strong {
    color: #ffffff;
}

.ocs-logout-btn {
    color: #f87171;
    text-decoration: none;
    font-weight: 600;
}

.ocs-logout-btn:hover {
    text-decoration: underline;
}

/* Banner */
.ocs-banner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 25px;
}

.ocs-badge-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ocs-banner h1 {
    margin: 5px 0 15px 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
}

.ocs-promo-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    border-radius: 10px;
    padding: 12px 18px;
    color: #a7f3d0;
}

.ocs-promo-icon {
    font-size: 28px;
}

.ocs-highlight-old {
    text-decoration: line-through;
    color: #cbd5e1;
    font-weight: 600;
}

.ocs-highlight-new {
    color: #ffffff;
    background: #059669;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Meta Bar */
.ocs-student-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.ocs-meta-item {
    background: #ffffff;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.ocs-meta-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ocs-meta-val {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.text-accent {
    color: #0284c7;
}

/* Provision Cards */
.ocs-provision-selection-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.ocs-box-header h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.ocs-box-header p {
    color: #64748b;
    margin-bottom: 25px;
}

.ocs-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.ocs-option-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.ocs-option-card input[type="radio"] {
    display: none;
}

.ocs-option-card:hover {
    border-color: #94a3b8;
    background: #ffffff;
}

.ocs-option-card.active {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.12);
}

.ocs-option-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.ocs-icon {
    font-size: 32px;
}

.ocs-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.ocs-subtitle {
    font-size: 12px;
    color: #64748b;
}

.ocs-fee-tag {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.ocs-cur {
    font-size: 20px;
    color: #0284c7;
}

.ocs-period {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
}

.ocs-perks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 13px;
    line-height: 1.8;
    color: #334155;
    flex-grow: 1;
}

.ocs-select-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0284c7;
    color: #ffffff;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.ocs-option-card.active .ocs-select-indicator {
    display: flex;
}

/* Payment & Balance Dashboard Card */
.ocs-payment-dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.ocs-payment-header h2 {
    margin: 0 0 6px 0;
    font-size: 22px;
    color: #0f172a;
    font-weight: 700;
}

.ocs-payment-header p {
    color: #64748b;
    margin-bottom: 25px;
}

.ocs-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.ocs-balance-box {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.box-invoiced {
    background: #f8fafc;
}

.box-paid {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.box-due {
    background: #fef2f2;
    border-color: #fecaca;
}

.ocs-bal-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.ocs-balance-box h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    font-family: 'Consolas', 'Courier New', monospace;
}

.text-green { color: #059669 !important; }
.text-red   { color: #dc2626 !important; }

/* Payment Input Row */
.ocs-pay-input-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr;
    gap: 15px;
    align-items: flex-end;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ocs-pay-field label {
    display: block;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.ocs-pay-field input, .ocs-pay-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.ocs-quick-presets {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #64748b;
}

.ocs-quick-presets a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}

.ocs-paid-stamp {
    text-align: center;
    background: #ecfdf5;
    border: 2px dashed #059669;
    border-radius: 12px;
    padding: 25px;
    color: #065f46;
}

.ocs-paid-stamp .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.ocs-paid-stamp h3 {
    margin: 0 0 6px 0;
    font-size: 22px;
    font-weight: 800;
}

/* History Table */
.ocs-payment-history-wrap {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.ocs-payment-history-wrap h3 {
    font-size: 16px;
    margin: 0 0 12px 0;
}

.ocs-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ocs-history-table th, .ocs-history-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.ocs-history-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
}

/* Invoice Slip */
.ocs-invoice-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.ocs-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.ocs-invoice-logo-group h2 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 800;
    color: #e02424;
}

.ocs-sub {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.ocs-inv-tag {
    background: #0f172a;
    color: #fff;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.ocs-invoice-meta {
    text-align: right;
    font-size: 13px;
    line-height: 1.6;
}

.ocs-status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 11px;
}

.status-paid { background: #d1fae5; color: #065f46; }
.status-partially_paid { background: #fef3c7; color: #92400e; }
.status-unpaid { background: #fee2e2; color: #991b1b; }

.ocs-divider {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

.ocs-invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.ocs-invoice-table th, .ocs-invoice-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.ocs-invoice-table th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 13px;
}

.text-right { text-align: right !important; }
.font-mono   { font-family: 'Consolas', 'Courier New', monospace; }

.ocs-total-row th {
    background: #f1f5f9;
    font-size: 15px;
    font-weight: 800;
}

.ocs-balance-row th {
    background: #fef2f2;
    font-size: 16px;
    font-weight: 800;
    color: #991b1b;
}

.ocs-grand-total {
    font-size: 18px;
    font-weight: 800;
}

.ocs-net-due {
    font-size: 18px;
    font-weight: 800;
    color: #dc2626;
}

.ocs-payment-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 25px;
}

.ocs-payment-info-box h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ocs-bank-pre {
    margin: 0 0 8px 0;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
    white-space: pre-line;
}

.ocs-ref-note {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.ocs-action-bar {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.ocs-ajax-notice {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.notice-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.notice-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

@media print {
    .no-print, .ocs-top-userbar, .ocs-provision-selection-box, .ocs-payment-dashboard-card, #wpadminbar, .site-header, .site-footer {
        display: none !important;
    }
    .ocs-portal-container {
        margin: 0;
        max-width: 100%;
    }
    .ocs-invoice-card {
        border: none;
        box-shadow: none;
        padding: 0;
    }
}
