﻿/**
 * =============================================================================
 * CONSOLIDATED PAGE STYLES
 * =============================================================================
 * This file consolidates all page-specific styles from individual .razor.css files
 *
 * Organization:
 * 1. Common Page Styles (headers, containers, cards)
 * 2. Business Hours Page
 * 3. Images Page
 * 4. Operators Page
 * 5. Products Page
 * 6. Scheduler Page
 * 7. Services Page
 * 8. Statistics Page
 * 9. Users Page
 * 10. Responsive Design
 * =============================================================================
 */

/* =============================================================================
   1. COMMON PAGE STYLES
   Used across multiple pages for consistency
   ============================================================================= */

/* Common Page Headers */
.page-header,
.business-hours-header,
.operators-header,
.services-header,
.users-header,
.products-header,
.images-header,
.statistics-header,
.scheduler-header {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

/* Header overlay effect for depth */
.page-header::before,
.business-hours-header::before,
.operators-header::before,
.services-header::before,
.users-header::before,
.products-header::before,
.images-header::before,
.statistics-header::before,
.scheduler-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.header-info,
.header-left {
    flex: 1;
    min-width: 300px;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--color-white);
    line-height: 1.2;
}

.page-title i {
    color: var(--color-white);
    font-size: 2rem;
}

.page-description {
    font-size: 1.05rem;
    margin: 0;
    opacity: 0.95;
    color: var(--color-white);
    font-weight: 400;
}

.header-stats {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
}

.stats-group {
    text-align: center;
}

.stat-item {
    text-align: center;
}

.total-count,
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: var(--color-white);
    line-height: 1.2;
}

.count-label,
.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    color: var(--color-white);
    display: block;
    margin-top: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.header-actions .btn {
    white-space: nowrap;
}

/* Common Content Sections */
.page-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Loading States */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #20c997;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #dee2e6;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* =============================================================================
   2. BUSINESS HOURS PAGE
   Component: BusinessHoursPresentation/BusinessHours.razor
   ============================================================================= */
.business-hours-container {
    padding: 0;
    background: #f8f9fa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.business-hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* =============================================================================
   3. IMAGES PAGE
   Component: ImagesPresentation/Images.razor
   ============================================================================= */
.images-page {
    padding: 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.images-header {
    /* Inherits from common header styles */
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.image-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* =============================================================================
   4. OPERATORS PAGE
   Component: OperatorsPresentation/Operators.razor
   ============================================================================= */
.operators-container {
    padding: 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
}

.operator-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.operator-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   5. PRODUCTS PAGE
   Component: ProductsPresentation/Products.razor
   ============================================================================= */
.products-container {
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.products-header {
    /* Inherits from common header styles */
    padding: 2rem;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   6. SCHEDULER PAGE
   Component: SchedulerComponets/Scheduler.razor
   ============================================================================= */
.scheduler-container {
    background: #f8f9fa;
    min-height: 100vh;
}

.scheduler-header {
    /* Inherits from common header styles */
    box-shadow: var(--shadow-md);
}

.scheduler-content {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* =============================================================================
   7. SERVICES PAGE
   Component: ServicesPresentation/Services.razor
   ============================================================================= */
.services-container {
    padding: 2rem;
    background: var(--bg-page, #f8f9fa);
    min-height: 100vh;
}

.services-header {
    /* Inherits from common header styles */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* =============================================================================
   8. STATISTICS PAGE
   Component: StatisticsPresentation/Statistics.razor
   ============================================================================= */
.statistics-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2rem;
}

.statistics-header {
    /* Inherits from common header styles */
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* =============================================================================
   9. USERS PAGE
   Component: UsersPresentation/Users.razor
   ============================================================================= */
.users-container {
    padding: 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.users-header {
    /* Inherits from common header styles */
}

.users-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 2rem 1rem;
    overflow: hidden;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.user-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.user-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* =============================================================================
   10. RESPONSIVE DESIGN
   ============================================================================= */

/* Tablet */
@media (max-width: 1024px) {
    .page-title {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .header-info,
    .header-left {
        min-width: 100%;
        text-align: center;
    }

    .header-stats {
        justify-content: center;
        width: 100%;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
    }

    .operators-grid,
    .services-grid,
    .products-grid,
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--spacing-lg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }

    .page-title i {
        font-size: 1.5rem;
    }

    .page-header,
    .business-hours-header,
    .operators-header,
    .services-header,
    .users-header,
    .products-header,
    .images-header,
    .statistics-header,
    .scheduler-header {
        padding: var(--spacing-lg) 0;
        margin-bottom: var(--spacing-lg);
    }

    .header-content {
        padding: 0 var(--spacing-md);
        gap: var(--spacing-md);
    }

    .header-stats {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .operators-grid,
    .services-grid,
    .products-grid,
    .images-grid,
    .users-grid,
    .business-hours-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .page-content {
        padding: 0 0.5rem 1.5rem;
    }

    .total-count,
    .stat-value {
        font-size: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .page-description {
        font-size: 0.95rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}
