/* Requests Page Styles */
.requests-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .requests-page {
        padding: 0.25rem;
    }
}

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

.page-header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* Tabs Container */
.tabs-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Filters Section */
.requests-filters-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.75rem;
    overflow: visible;
}

.filters-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.65rem 1.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    transition: background 0.15s ease;
}

.filters-toggle:hover {
    background: #f0f0f0;
}

.filters-toggle-icon {
    font-size: 1rem;
}

.filters-toggle-text {
    font-weight: 600;
}

.filters-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #667eea;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.filters-toggle-arrow {
    margin-left: auto;
    font-size: 10px;
    color: #6c757d;
}

.filters-panel {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.25rem 1rem;
}

.filter-dropdown-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.requests-filter-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    width: 100%;
    height: 44px;
    user-select: none;
}

.requests-filter-dropdown:hover {
    border-color: #adb5bd;
}

.requests-filter-dropdown-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.requests-filter-dropdown-arrow {
    font-size: 10px;
    color: #6c757d;
    flex-shrink: 0;
}

.requests-filter-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.requests-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #212529;
    transition: background 0.15s ease;
}

.requests-filter-option:hover {
    background: #f0f4ff;
}

.requests-filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.tabs-header {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    overflow-x: auto;
    width: 100%;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: normal;
    border-bottom: 3px solid transparent;
    flex: 1;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-text {
    font-size: 0.95rem;
}

/* Tab Content */
.tab-content {
    padding: 2rem;
}

.tab-panel {
    min-height: 400px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    gap: 1rem;
}

.panel-header h2 {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Refresh Button Styles */
.panel-header .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: auto;
    flex-shrink: 0;
    min-width: auto;
}

/* Icon-only button styles */
.btn-icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.btn-icon-only .btn-icon {
    font-size: 1.2rem;
    margin: 0;
}

/* Loading and Empty States */
.requests-page .loading-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.requests-page .loading-message .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.requests-page .loading-message p {
    margin: 0;
    font-size: 1.1rem;
    font-style: italic;
}

.requests-page .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.requests-page .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.requests-page .empty-state h3 {
    color: #495057;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.requests-page .empty-state p {
    margin: 0;
    font-size: 1rem;
    font-style: italic;
}

/* Requests List */
.requests-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Request Card */
.request-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

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

.requests-page .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.requests-page .class-info {
    flex: 1;
}

.class-name {
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.class-description {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-looking {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-looking-accepted {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-filled {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-not-filled {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-canceled {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-approved {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-unknown {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Card Content */
.requests-page .card-content {
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.requests-page .info-label {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requests-page .info-value {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

.reason-text {
    font-style: italic;
    color: #6c757d;
}

/* Card Actions */
.requests-page .card-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.requests-page .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    min-width: fit-content;
    height: 44px;
    flex-shrink: 0;
    width: auto;
    justify-content: flex-start;
}

.requests-page .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.requests-page .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.requests-page .btn-primary {
    background: #667eea;
    color: white;
}

.requests-page .btn-primary:hover {
    background: #5a6fd8;
}

.requests-page .btn-success {
    background: #28a745;
    color: white;
}

.requests-page .btn-success:hover {
    background: #218838;
}

.requests-page .btn-danger {
    background: #dc3545;
    color: white;
}

.requests-page .btn-danger:hover {
    background: #c82333;
}

.requests-page .btn-info {
    background: #17a2b8;
    color: white;
}

.requests-page .btn-info:hover {
    background: #138496;
}

.requests-page .btn-outline {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #adb5bd;
}

.requests-page .btn-outline:hover {
    background: #e9ecef;
    color: #343a40;
    border-color: #6c757d;
}

.requests-page .btn-icon {
    font-size: 1rem;
}

/* MindBody Section */
.mindbody-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mindbody-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mindbody-link:hover {
    background: #e9ecef;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mindbody-logo {
    height: 40px;
    width: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .requests-page {
        padding: 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .tabs-header {
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .tab-button {
        flex: 1;
        min-width: 0;
        padding: 0.75rem 0.25rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .tab-text {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
    
    .tab-content {
        padding: 1rem;
    }

    .filters-panel {
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .requests-page .card-actions {
        flex-direction: column;
        justify-content: stretch;
        align-items: stretch;
        gap: 0.75rem;
    }

    .requests-page .card-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        min-width: unset !important;
    }
    
    
    .mindbody-section {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .mindbody-link {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) { 
    .requests-page {
        padding: 0.5rem;
    }

    .tab-content {
        padding: 0.75rem;
    }
    
    .tab-button {
        flex: 1;
        min-width: 0;
        padding: 0.5rem 0.15rem;
        font-size: 0.8rem;
        gap: 0.2rem;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .tab-content {
        padding: 0.25rem;
    }

    .tab-button {
        padding: 0.3rem 0.05rem;
        font-size: 0.8rem;
        gap: 0.1rem;
    }

    .tab-icon {
        display: none; /* Hide icons on very small screens */
    }

    .request-card {
        padding: 0.5rem;
        margin: 0.25rem 0;
    }

    .requests-page .card-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .status-badge {
        align-self: flex-start;
    }
    
    .mindbody-section {
        padding: 0.5rem;
        margin: 1rem 0 0 0;
    }
}

@media (max-width: 360px) {
    .tab-content {
        padding: 0.15rem;
    }

    .tab-button {
        padding: 0.25rem 0.02rem;
        font-size: 0.8rem;
        gap: 0.08rem;
    }

    .tab-icon {
        display: none; /* Hide icons on very small screens */
    }

    .request-card {
        padding: 0.4rem;
        margin: 0.2rem 0;
    }

    .requests-page .card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .status-badge {
        align-self: flex-start;
    }
}
