/**
 * Ride Scouts - Frontend Styles
 * 
 * @package Ride_Scouts
 * @version 1.0.7
 * 
 * IMPORTANT: All colors must use the design system variables
 * Primary: #0B7CAC
 * Hover: #F96234
 */

/* ==========================================================================
   CSS Variables (Frontend)
   ========================================================================== */

:root {
    --rsc-primary: #0B7CAC;
    --rsc-primary-hover: #F96234;
    --rsc-primary-light: #f0f6fc;
    --rsc-success: #00a32a;
    --rsc-success-light: #edfaef;
    --rsc-warning: #dba617;
    --rsc-warning-light: #fcf9e8;
    --rsc-error: #d63638;
    --rsc-error-light: #fcf0f1;
    --rsc-text-primary: #1d2327;
    --rsc-text-secondary: #646970;
    --rsc-border: #c3c4c7;
    --rsc-border-light: #dcdcde;
    --rsc-bg-light: #f6f7f7;
    --rsc-bg-section: #f0f6fc;
}

/* ==========================================================================
   Booking Form
   ========================================================================== */

.rsc-booking-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rsc-form-group {
    margin-bottom: 20px;
}

.rsc-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.rsc-form-group input,
.rsc-form-group select,
.rsc-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rsc-form-group input:focus,
.rsc-form-group select:focus,
.rsc-form-group textarea:focus {
    outline: none;
    border-color: var(--rsc-primary);
    box-shadow: 0 0 0 3px rgba(11, 124, 172, 0.15);
}

.rsc-form-row {
    display: flex;
    gap: 15px;
}

.rsc-form-group.rsc-half {
    flex: 1;
}

.rsc-form-submit {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rsc-form-message {
    font-size: 14px;
}

.rsc-form-message.success {
    color: #155724;
}

.rsc-form-message.error {
    color: #721c24;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.rsc-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.rsc-btn-primary {
    background: #F96234;
    color: #fff;
}

.rsc-btn-primary:hover {
    background: #0B7CAC;
    color: #fff;
}

.rsc-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.rsc-btn-secondary:hover {
    background: #ddd;
    color: #333;
}

.rsc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Services List
   ========================================================================== */

.rsc-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.rsc-service-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.rsc-service-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.rsc-service-name {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1d2327;
}

.rsc-service-location {
    color: #666;
    margin: 0 0 15px;
    font-size: 14px;
}

.rsc-service-location .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.rsc-service-description {
    color: #555;
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.5;
}

.rsc-service-schedule {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.rsc-service-schedule h4 {
    margin: 0 0 10px;
    font-size: 14px;
    color: #1d2327;
}

.rsc-run-times {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rsc-run-times li {
    padding: 5px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.rsc-run-times li:last-child {
    border-bottom: none;
}

.rsc-service-days {
    font-size: 13px;
    color: #666;
    margin: 10px 0 0;
}

/* ==========================================================================
   Single Service
   ========================================================================== */

.rsc-single-service {
    max-width: 800px;
    margin: 0 auto;
}

.rsc-single-service h2 {
    margin-bottom: 15px;
}

.rsc-schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.rsc-schedule-table th,
.rsc-schedule-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.rsc-schedule-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1d2327;
}

.rsc-schedule-table tbody tr:hover {
    background: #f8f9fa;
}

/* ==========================================================================
   Quick Book Widget
   ========================================================================== */

.rsc-quick-book {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.rsc-quick-book h3 {
    margin: 0 0 15px;
    font-size: 18px;
}

.rsc-quick-book-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rsc-quick-book-form select,
.rsc-quick-book-form input {
    flex: 1;
    min-width: 150px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.rsc-quick-book-form button {
    padding: 10px 20px;
}

/* ==========================================================================
   Error Messages
   ========================================================================== */

.rsc-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

.rsc-no-services,
.rsc-no-runs {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 30px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ==========================================================================
   Service Reservation Form (New Mockup Design)
   ========================================================================== */

.rsc-reservation-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.rsc-service-title {
    margin: 0;
    padding: 12px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-size: 20px;
    color: #1d2327;
}

.rsc-service-desc {
    padding: 8px 25px;
    background: transparent;
    border: none;
    margin: 5px 25px 15px;
    color: #0066a4;
    font-size: 18px;
    line-height: 1.5;
    font-style: italic;
}

.rsc-reservation-form-inner {
    padding: 15px 25px;
}

/* Location Display Rows (Pickup/Dropoff) */
.rsc-location-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rsc-location-label {
    flex: 0 0 130px;
    max-width: 130px;
}

.rsc-location-label label {
    margin-bottom: 0;
    font-weight: 500;
    color: #555;
    font-size: 13px;
    white-space: nowrap;
}

.rsc-location-value {
    flex: 1;
    display: flex;
    gap: 10px;
}

.rsc-location-value.has-terminal {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 10px;
}

.rsc-location-display {
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #333;
    font-weight: 400;
    cursor: default;
    height: 36px;
}

.rsc-terminal-select {
    min-width: 160px;
    height: 36px;
}

.rsc-reservation-form .rsc-form-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    margin-bottom: 10px;
}

.rsc-reservation-form .rsc-form-row-3 {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 15px !important;
}

.rsc-reservation-form .rsc-form-col {
    flex: 1 !important;
}

.rsc-reservation-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #555;
    font-size: 13px;
}

.rsc-reservation-form input,
.rsc-reservation-form select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #fff;
    height: 36px;
}

.rsc-reservation-form input:focus,
.rsc-reservation-form select:focus {
    outline: none;
    border-color: var(--rsc-primary);
    box-shadow: 0 0 0 2px rgba(11, 124, 172, 0.15);
}

.rsc-seats-display {
    background: #f5f5f5 !important;
    text-align: center;
    font-weight: 600;
    color: #1d2327;
    cursor: not-allowed;
}

/* Payment Section */
.rsc-payment-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--rsc-bg-light);
    border-radius: 6px;
    border: 1px solid var(--rsc-border-light);
    /* IMPORTANT: Override any form-row constraints */
    display: block !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.rsc-payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.rsc-payment-header label {
    font-weight: 600;
    font-size: 15px;
    color: var(--rsc-text-primary);
    margin: 0;
}

.rsc-payment-mode-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.rsc-payment-mode-badge.test {
    background: var(--rsc-error-light);
    color: var(--rsc-error);
}

.rsc-payment-mode-badge.live {
    background: var(--rsc-success-light);
    color: var(--rsc-success);
}

/* Stripe Card Element Container - MUST be full width for all fields */
.rsc-card-element-container {
    width: 100%;
    display: block;
}

.rsc-card-element {
    background: #fff;
    padding: 14px 16px;
    border: 1px solid var(--rsc-border);
    border-radius: 4px;
    min-height: 48px;
    /* CRITICAL: Full width to show card number, expiry, CVC */
    width: 100% !important;
    min-width: 280px;
    box-sizing: border-box;
    display: block;
}

.rsc-card-element.StripeElement--focus {
    border-color: var(--rsc-primary);
    box-shadow: 0 0 0 2px rgba(11, 124, 172, 0.15);
}

.rsc-card-element.StripeElement--invalid {
    border-color: var(--rsc-error);
}

.rsc-card-errors {
    color: var(--rsc-error);
    font-size: 13px;
    margin-top: 10px;
    display: block;
}

.rsc-card-instruction {
    font-size: 13px;
    color: var(--rsc-text-secondary);
    margin: 0 0 10px 0;
}

.rsc-payment-note {
    font-size: 12px;
    color: var(--rsc-text-secondary);
    margin-top: 12px;
    margin-bottom: 0;
    text-align: center;
    font-style: italic;
}

.rsc-test-card-info {
    font-size: 11px;
    color: var(--rsc-warning);
    margin-top: 10px;
    margin-bottom: 0;
    padding: 8px 12px;
    background: #fffbe6;
    border: 1px solid #fadb14;
    border-radius: 4px;
    font-family: monospace;
}

/* Override any form constraints for payment section */
.rsc-reservation-form .rsc-payment-section,
.rsc-reservation-form-inner .rsc-payment-section {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Ensure Stripe iframe has enough width */
.rsc-card-element iframe,
.rsc-card-element .__PrivateStripeElement {
    width: 100% !important;
    min-width: 100% !important;
}

.rsc-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rsc-total-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rsc-total-label {
    font-size: 15px;
    color: #666;
}

.rsc-total-amount {
    font-size: 26px;
    font-weight: 700;
    color: #1d2327;
    min-width: 70px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.rsc-btn-book {
    padding: 8px 20px;
    font-size: 13px;
    min-width: auto;
    font-weight: 600;
    transition: opacity 0.3s, background 0.3s;
}

.rsc-btn-book:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
}

.rsc-btn-book:disabled:hover {
    background: #adb5bd;
}

.rsc-reservation-form .rsc-form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.rsc-reservation-form .rsc-form-message.show {
    display: block;
}

.rsc-reservation-form .rsc-form-message.success {
    background: #d4edda;
    color: #155724;
}

.rsc-reservation-form .rsc-form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .rsc-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .rsc-booking-form {
        padding: 20px;
    }
    
    .rsc-services-list {
        grid-template-columns: 1fr;
    }
    
    .rsc-quick-book-form {
        flex-direction: column;
    }
    
    .rsc-quick-book-form select,
    .rsc-quick-book-form input,
    .rsc-quick-book-form button {
        width: 100%;
    }
    
    .rsc-reservation-form .rsc-form-row,
    .rsc-reservation-form .rsc-form-row-3 {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .rsc-reservation-form-inner {
        padding: 15px;
    }
    
    .rsc-service-title,
    .rsc-service-desc {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .rsc-form-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .rsc-btn-book {
        width: 100%;
    }
    
    .rsc-total-row {
        justify-content: center;
    }
    
    /* Location rows responsive */
    .rsc-location-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .rsc-location-label {
        flex: none;
        max-width: 100%;
    }
    
    .rsc-location-value {
        width: 100%;
    }
    
    .rsc-location-value.has-terminal {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Booking Confirmation Page
   ========================================================================== */

.rsc-confirmation {
    max-width: 650px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.rsc-confirmation-header {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    text-align: center;
    padding: 35px 25px;
}

.rsc-confirmation-icon {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 15px;
}

.rsc-confirmation-header h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
}

.rsc-confirmation-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.rsc-confirmation-number {
    background: #f8f9fa;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.rsc-confirmation-number .rsc-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 8px;
}

.rsc-confirmation-number .rsc-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.rsc-confirmation-number .rsc-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.rsc-confirmation-details {
    padding: 25px;
}

.rsc-detail-section {
    margin-bottom: 25px;
}

.rsc-detail-section:last-child {
    margin-bottom: 0;
}

.rsc-detail-section h3 {
    margin: 0 0 15px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    background: #f0f0f0;
    padding: 12px 15px;
    border-radius: 4px;
    border-bottom: none;
}

.rsc-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.rsc-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rsc-detail-item .rsc-icon {
    font-size: 20px;
    line-height: 1;
}

.rsc-detail-content {
    flex: 1;
}

.rsc-detail-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 3px;
}

.rsc-detail-value {
    display: block;
    font-size: 15px;
    color: #000;
    font-weight: 500;
}

.rsc-passenger-info {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.rsc-passenger-info p {
    margin: 0 0 5px;
    color: #000;
}

.rsc-passenger-info p:last-child {
    margin-bottom: 0;
}

.rsc-passenger-info p strong {
    font-size: 16px;
}

.rsc-payment-section {
    background: #f0f9f4;
    margin: 0 -25px;
    padding: 20px 25px !important;
    margin-bottom: 0 !important;
}

.rsc-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.rsc-payment-row .rsc-total {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
}

.rsc-special-requests {
    background: #fff8e6;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #f0ad4e;
    margin: 0;
    color: #856404;
}

.rsc-confirmation-actions {
    display: flex;
    gap: 12px;
    padding: 0 25px 25px;
    justify-content: center;
}

.rsc-confirmation-actions .rsc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
}

.rsc-btn-icon {
    font-size: 16px;
}

.rsc-confirmation-footer {
    background: #f8f9fa;
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid #eee;
}

.rsc-confirmation-footer p {
    margin: 0 0 8px;
    color: #555;
    font-size: 14px;
}

.rsc-confirmation-footer p:last-child {
    margin-bottom: 0;
}

.rsc-confirmation-footer .rsc-small {
    font-size: 12px;
    color: #999;
}

/* Print styles for confirmation */
@media print {
    .rsc-confirmation {
        box-shadow: none;
        max-width: 100%;
    }
    
    .rsc-confirmation-actions {
        display: none;
    }
    
    .rsc-confirmation-header {
        background: #2ecc71 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 600px) {
    .rsc-confirmation-header {
        padding: 25px 20px;
    }
    
    .rsc-confirmation-header h2 {
        font-size: 22px;
    }
    
    .rsc-confirmation-number .rsc-number {
        font-size: 24px;
    }
    
    .rsc-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .rsc-confirmation-actions {
        flex-direction: column;
    }
    
    .rsc-confirmation-actions .rsc-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   PORTAL STYLES
   Service Partner, Agent, Fleet Partner Portals
   ========================================================================== */

/* Portal Container */
.rsc-portal-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Portal Top Bar */
.rsc-portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--rsc-bg-section);
    border: 1px solid var(--rsc-border);
    border-radius: 8px;
    margin-bottom: 20px;
}

.rsc-topbar-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--rsc-text-primary);
}

.rsc-topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rsc-user-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rsc-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.rsc-user-name {
    font-size: 14px;
    color: var(--rsc-text-primary);
    font-weight: 500;
}

.rsc-signout-link {
    color: var(--rsc-text-secondary);
    text-decoration: none;
    font-size: 13px;
    margin-left: 8px;
}

.rsc-signout-link:hover {
    color: var(--rsc-error);
}

/* Portal Body Layout */
.rsc-portal-body {
    display: flex;
    gap: 20px;
    min-height: 500px;
}

/* Portal Sidebar */
.rsc-portal-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: var(--rsc-bg-light);
    border: 1px solid var(--rsc-border);
    border-radius: 10px;
    padding: 15px 0 40px;
    align-self: flex-start;
}

.rsc-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.rsc-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--rsc-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.rsc-sidebar-link:hover {
    color: var(--rsc-primary);
    background: rgba(11, 124, 172, 0.08);
}

.rsc-sidebar-link.active {
    color: var(--rsc-primary);
    background: rgba(11, 124, 172, 0.1);
    border-left-color: var(--rsc-primary);
    font-weight: 600;
}

.rsc-sidebar-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Portal Main Content */
.rsc-portal-main {
    flex: 1;
    min-width: 0;
}

/* Portal Section */
.rsc-portal-section {
    background: #fff;
    border: 1px solid var(--rsc-border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.rsc-portal-section .rsc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--rsc-bg-section);
    border-bottom: 1px solid var(--rsc-border);
}

.rsc-portal-section .rsc-section-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--rsc-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.rsc-portal-section .rsc-section-content {
    padding: 20px;
}

/* Portal Stats Grid */
.rsc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.rsc-stat-card {
    background: #fff;
    border: 1px solid var(--rsc-border);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.rsc-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--rsc-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.rsc-stat-label {
    font-size: 12px;
    color: var(--rsc-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Portal Table */
.rsc-portal-table {
    width: 100%;
    border-collapse: collapse;
}

.rsc-portal-table thead th {
    padding: 12px 15px;
    background: var(--rsc-bg-light);
    font-size: 12px;
    font-weight: 600;
    color: var(--rsc-text-primary);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--rsc-border);
}

.rsc-portal-table tbody td {
    padding: 12px 15px;
    font-size: 14px;
    color: var(--rsc-text-primary);
    border-bottom: 1px solid var(--rsc-border-light);
    vertical-align: middle;
}

.rsc-portal-table tbody tr:last-child td {
    border-bottom: none;
}

.rsc-portal-table tbody tr:hover {
    background: var(--rsc-primary-light);
}

/* Portal Buttons */
.rsc-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    color: #fff;
    background: var(--rsc-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.rsc-portal-btn:hover {
    background: var(--rsc-primary-hover);
    color: #fff;
}

.rsc-portal-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.rsc-portal-btn-secondary {
    background: var(--rsc-bg-light);
    color: var(--rsc-text-primary);
    border: 1px solid var(--rsc-border);
}

.rsc-portal-btn-secondary:hover {
    background: var(--rsc-border-light);
    color: var(--rsc-text-primary);
}

/* Portal Login Page */
.rsc-portal-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.rsc-login-container {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid var(--rsc-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rsc-login-header {
    padding: 20px;
    background: var(--rsc-bg-section);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--rsc-text-primary);
    border-bottom: 1px solid var(--rsc-border);
}

.rsc-portal-form {
    padding: 25px;
}

.rsc-field {
    margin-bottom: 20px;
}

.rsc-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rsc-text-primary);
}

.rsc-field input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--rsc-border);
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rsc-field input:focus {
    outline: none;
    border-color: var(--rsc-primary);
    box-shadow: 0 0 0 2px rgba(11, 124, 172, 0.15);
}

.rsc-field-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rsc-login-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: var(--rsc-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.rsc-login-btn:hover {
    background: var(--rsc-primary-hover);
}

.rsc-login-error {
    padding: 12px;
    margin-bottom: 20px;
    background: var(--rsc-error-light);
    border: 1px solid var(--rsc-error);
    border-radius: 4px;
    color: var(--rsc-error);
    font-size: 13px;
    text-align: center;
}

/* Portal Empty State */
.rsc-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--rsc-text-secondary);
}

.rsc-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--rsc-border);
    margin-bottom: 15px;
}

.rsc-empty-state h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: var(--rsc-text-primary);
}

.rsc-empty-state p {
    margin: 0 0 20px;
    font-size: 14px;
}

/* Portal Status Badges */
.rsc-status-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
}

.rsc-status-confirmed {
    background: var(--rsc-success-light);
    color: var(--rsc-success);
}

.rsc-status-pending {
    background: var(--rsc-warning-light);
    color: #8a6d14;
}

.rsc-status-cancelled {
    background: var(--rsc-error-light);
    color: var(--rsc-error);
}

/* Portal Filter Row */
.rsc-filter-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rsc-filter-field {
    flex: 1;
    min-width: 150px;
}

.rsc-filter-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--rsc-text-secondary);
}

.rsc-filter-field select,
.rsc-filter-field input {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--rsc-border);
    border-radius: 4px;
    background: #fff;
}

/* Portal Responsive */
@media (max-width: 768px) {
    .rsc-portal-body {
        flex-direction: column;
    }
    
    .rsc-portal-sidebar {
        width: 100%;
        border-radius: 8px;
        padding: 10px 0;
    }
    
    .rsc-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .rsc-sidebar-link {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .rsc-sidebar-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--rsc-primary);
    }
    
    .rsc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rsc-portal-topbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.rsc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.rsc-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--rsc-border);
    border-top-color: var(--rsc-primary);
    border-radius: 50%;
    animation: rsc-spin 0.8s linear infinite;
}

@keyframes rsc-spin {
    to { transform: rotate(360deg); }
}

.rsc-skeleton {
    background: linear-gradient(90deg, var(--rsc-bg-light) 25%, #e8e9eb 50%, var(--rsc-bg-light) 75%);
    background-size: 200% 100%;
    animation: rsc-shimmer 1.5s infinite;
    border-radius: 4px;
}

.rsc-skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.rsc-skeleton-title {
    height: 20px;
    width: 40%;
    margin-bottom: 12px;
}

@keyframes rsc-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

