﻿/* ============================================
   REPORTS - BASE STYLES
   Toyota Professional Insurance Interface
   ============================================ */

/* Page Loading */
.page-loading-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loading-content {
    text-align: center;
}

.page-loading-spinner {
    margin-bottom: 2rem;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 4px solid;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dashboard Container */
.dashboard-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Dashboard Header */
.dashboard-header {
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.header-content h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    border-radius: 0.75rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid;
}

    .stat-card:hover {
        transform: translateY(-4px);
    }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Reports Section */
.reports-section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 2rem;
}

    .section-header h2 {
        font-size: 1.75rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .section-header p {
        font-size: 1rem;
        margin: 0;
    }

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Report Card */
.report-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

    .report-card:not(.coming-soon):hover {
        transform: translateY(-8px);
    }

    .report-card.coming-soon {
        cursor: not-allowed;
        opacity: 0.7;
    }

    .report-card.loading {
        pointer-events: none;
    }

/* Report Card Header */
.report-card-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.report-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.report-badge {
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Report Card Content */
.report-card-content {
    padding: 0 2rem 2rem;
}

    .report-card-content h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .report-card-content p {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

/* Broker Selection */
.broker-selection {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

    .broker-selection .form-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .broker-selection .form-select {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 2px solid;
        border-radius: 0.5rem;
        font-size: 0.9375rem;
        transition: all 0.3s ease;
    }

        .broker-selection .form-select:focus {
            outline: none;
        }

/* Report Features */
.report-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

    .feature-item i {
        width: 20px;
        font-size: 0.875rem;
    }

/* Report Card Footer */
.report-card-footer {
    padding: 2rem;
    border-top: 1px solid;
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

    .btn:not(:disabled):hover {
        transform: translateY(-2px);
    }

    .btn:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    margin-bottom: 1rem;
}

    .loading-spinner .spinner {
        width: 50px;
        height: 50px;
    }

.loading-content p {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

/* Help Section */
.help-section {
    margin-bottom: 2rem;
}

.dashboard-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid;
}

.card-header {
    padding: 2rem;
    border-bottom: 1px solid;
}

    .card-header h2 {
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

.card-content {
    padding: 2rem;
}

.help-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.help-item {
    display: flex;
    gap: 1.5rem;
}

.help-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.help-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.help-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .reports-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }

    .dashboard-header {
        padding: 2rem 1.5rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .help-items {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .report-card-header,
    .report-card-content,
    .report-card-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-icon,
    .report-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }
}
