/* ============================================================================
   Global Styles
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================================
   Header
   ============================================================================ */

header {
    background: white;
    padding: 2rem 0;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

header p {
    font-size: 1.1rem;
    color: #666;
}

.logout-btn {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.logout-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.dashboard-actions {
    margin: 2rem 0;
    text-align: center;
}

/* ============================================================================
   Main Content
   ============================================================================ */

main {
    padding: 2rem 0;
}

.screen {
    display: none;
    background: white;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.screen.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}

/* ============================================================================
   Card Grid
   ============================================================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background: white;
    color: #333;
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.card:hover {
    border-color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.card button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card button:hover {
    background: #34495e;
}

/* ============================================================================
   Stats
   ============================================================================ */

.stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* ============================================================================
   Forms
   ============================================================================ */

.form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.checkbox-group label:hover {
    border-color: #2c3e50;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"]:checked + span,
.checkbox-group label:has(input[type="checkbox"]:checked) {
    color: #2c3e50;
    font-weight: 500;
}

/* Radio button groups in checkbox-group containers */
.checkbox-group input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox-group label:has(input[type="radio"]:checked) {
    color: #2c3e50;
    font-weight: 500;
    border-color: #2c3e50;
}

/* Radio Group Styles */
.radio-group {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.radio-group label:hover {
    border-color: #2c3e50;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

.radio-group label:has(input[type="radio"]:checked) {
    color: #2c3e50;
    font-weight: 500;
    border-color: #2c3e50;
    background: #f0f4f8;
}

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

.btn-primary,
.btn-secondary,
.back-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-secondary {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.back-btn {
    background: transparent;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.back-btn:hover {
    background: #f5f5f5;
}

button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* ============================================================================
   Success Messages
   ============================================================================ */

.success-message {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.success-message h3 {
    margin-bottom: 0.5rem;
}

/* ============================================================================
   Admin Dashboard
   ============================================================================ */

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #2c3e50;
    border-bottom-color: #2c3e50;
}

.tab-btn:hover {
    color: #2c3e50;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.data-list {
    margin-top: 2rem;
}

.data-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.data-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.data-item p {
    margin: 0.25rem 0;
    color: #666;
}

.data-item strong {
    color: #333;
}

.match-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.match-score {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.match-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
}

.loading p {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================================
   Footer
   ============================================================================ */

footer {
    background: white;
    padding: 1.5rem 0;
    text-align: center;
    color: #666;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

/* ============================================================================
   Tables
   ============================================================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
}

.data-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.data-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.data-table td {
    padding: 1rem;
    color: #666;
}

.data-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
}

/* ============================================================================
   Modal
   ============================================================================ */

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
}

.modal-close:hover,
.modal-close:focus {
    color: #333;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.detail-item label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    color: #333;
    font-size: 1rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.badge {
    background: #2c3e50;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

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

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* ============================================================================
   Payment Schedule Styles
   ============================================================================ */

.payment-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-summary-item {
    text-align: center;
}

.payment-summary-item .label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.payment-summary-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.payment-summary-item .value.paid {
    color: #27ae60;
}

.payment-summary-item .value.remaining {
    color: #e74c3c;
}

.payment-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.payment-item.paid {
    border-color: #27ae60;
    background: #f0fff4;
}

.payment-item.due {
    border-color: #f39c12;
    background: #fffbf0;
}

.payment-item.pending {
    border-color: #e0e0e0;
    background: white;
}

.payment-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.payment-name {
    font-weight: 600;
    color: #2c3e50;
}

.payment-amount {
    font-size: 1.25rem;
    font-weight: bold;
    color: #2c3e50;
}

.payment-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.payment-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e0e0e0;
}

.payment-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.payment-status.paid {
    background: #d4edda;
    color: #155724;
}

.payment-status.due {
    background: #fff3cd;
    color: #856404;
}

.payment-status.pending {
    background: #e9ecef;
    color: #495057;
}

.btn-pay {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Payment Schedule Responsive Styles */
@media (max-width: 768px) {
    .payment-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .payment-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .payment-item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .btn-pay {
        width: 100%;
    }
}

/* ============================================================================
   Payment Modal Styles
   ============================================================================ */

.payment-modal-content {
    max-width: 500px;
}

.payment-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.payment-amount-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.stripe-element {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    background: white;
    margin-bottom: 1rem;
}

.stripe-element.StripeElement--focus {
    border-color: #2c3e50;
}

.payment-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 1.5rem;
}

.btn-full-width {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none;
}

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

.payment-security-note {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ============================================================================
   Payment Success Notification
   ============================================================================ */

.payment-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.5rem;
}


/* ============================================================================
   Milestone Management Styles
   ============================================================================ */

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.milestone-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.milestone-item.completed {
    border-color: #27ae60;
    background: #f0fff4;
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.milestone-info {
    display: flex;
    flex-direction: column;
}

.milestone-name {
    font-weight: 600;
    color: #2c3e50;
}

.milestone-amount {
    color: #666;
    font-size: 0.9rem;
}

.milestone-status {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 500;
}

.status-badge.completed {
    background: #d4edda;
    color: #155724;
}

.status-badge.paid {
    background: #cce5ff;
    color: #004085;
}

.status-badge.awaiting {
    background: #fff3cd;
    color: #856404;
}

.btn-complete {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.milestone-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.milestone-meta {
    color: #999;
    font-size: 0.8rem;
}


/* ============================================================================
   Dashboard Payment Styles
   ============================================================================ */

/* Payment Status Badge (Dashboard) */
.payment-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.payment-status-badge.pending {
    background: #e9ecef;
    color: #495057;
}

.payment-status-badge.partial {
    background: #fff3cd;
    color: #856404;
}

.payment-status-badge.complete {
    background: #d4edda;
    color: #155724;
}

/* Dashboard table payment columns */
.data-table td.paid-column {
    color: #27ae60;
    font-weight: 500;
}

.data-table td.remaining-column {
    color: #e74c3c;
    font-weight: 500;
}


/* ============================================================================
   Pilot Pool Styles
   ============================================================================ */

.pool-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pool-stat-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.pool-stat-card.priority-high {
    border-left: 4px solid #e74c3c;
}

.pool-stat-card.priority-medium {
    border-left: 4px solid #f39c12;
}

.pool-stat-card.priority-low {
    border-left: 4px solid #27ae60;
}

.pool-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.pool-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.pool-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
}

/* Priority Badges */
.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.priority-badge.high {
    background: #fde8e8;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.priority-badge.medium {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.priority-badge.low {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.priority-badge.none {
    background: #e5e7eb;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

/* Pool Pilot Card */
.pool-pilot-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.pool-pilot-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pool-pilot-card.priority-high {
    border-left: 4px solid #e74c3c;
}

.pool-pilot-card.priority-medium {
    border-left: 4px solid #f39c12;
}

.pool-pilot-card.priority-low {
    border-left: 4px solid #27ae60;
}

.pool-pilot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.pool-pilot-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.pool-pilot-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.days-in-pool {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.pool-pilot-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.pool-pilot-details span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Pool Pagination */
.pool-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.pool-pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pool-pagination button:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #2c3e50;
}

.pool-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pool-pagination .page-info {
    padding: 0.5rem 1rem;
    color: #666;
}

/* Responsive Pool Styles */
@media (max-width: 768px) {
    .pool-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .pool-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }

    .pool-pilot-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pool-pilot-details {
        grid-template-columns: 1fr;
    }
}


/* ============================================================================
   Resume Upload Styles
   ============================================================================ */

.section-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Drop Zone */
.resume-drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
}

.resume-drop-zone.drag-active {
    border-color: #2c3e50;
    background: #f0f4f8;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.drop-zone-icon {
    font-size: 3rem;
}

.drop-zone-text {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.drop-zone-subtext {
    color: #999;
    margin: 0;
}

.drop-zone-hint {
    color: #999;
    font-size: 0.85rem;
    margin-top: 1rem;
}

.resume-file-label {
    cursor: pointer;
    display: inline-block;
}

/* File Preview */
.resume-file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 1rem;
}

.resume-file-preview #resume-file-name {
    font-weight: 600;
    color: #2c3e50;
}

.resume-file-preview #resume-file-size {
    color: #666;
    font-size: 0.9rem;
}

/* Upload Progress */
.resume-upload-progress {
    margin-top: 1rem;
}

.progress-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #2c3e50;
    transition: width 0.3s ease;
    width: 0%;
}

#resume-progress-text {
    text-align: center;
    color: #666;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Error Display */
.resume-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #fde8e8;
    border: 1px solid #feb2b2;
    border-radius: 4px;
    margin-top: 1rem;
    color: #c53030;
}

/* Review Modal */
.modal-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.review-actions-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.review-actions-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.review-category {
    margin-bottom: 1.5rem;
}

.review-category h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.review-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-field {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.review-field.has-difference {
    border-color: #f39c12;
    background: #fffbf0;
}

.review-field-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.review-field-values {
    margin-left: 1.5rem;
}

.parsed-value, .current-value {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.value-label {
    color: #666;
    min-width: 100px;
}

.value-text {
    color: #333;
}

.current-value .value-text {
    color: #999;
    text-decoration: line-through;
}

.unextracted-note {
    color: #666;
    font-style: italic;
}

/* Resume History */
.resume-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0;
}

.resume-history-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resume-filename {
    font-weight: 600;
    color: #2c3e50;
}

.resume-date {
    color: #666;
    font-size: 0.9rem;
}

.resume-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.resume-status.status-parsed {
    background: #d4edda;
    color: #155724;
}

.resume-status.status-parsing {
    background: #fff3cd;
    color: #856404;
}

.resume-status.status-failed {
    background: #fde8e8;
    color: #c53030;
}

.btn-small {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

.btn-link {
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    padding: 0;
}

.btn-link:hover {
    color: #34495e;
}

/* Resume Upload Responsive Styles */
@media (max-width: 768px) {
    .resume-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .resume-history-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .review-field-values {
        margin-left: 0;
    }

    .review-actions-top {
        flex-direction: column;
    }

    .review-actions-bottom {
        flex-direction: column;
    }

    .resume-file-preview {
        flex-direction: column;
        align-items: flex-start;
    }
}
