/* ==========================================================================
   Layout - Container, Header, Main Structure
   ========================================================================== */

.container {
    max-width: 2500px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: white;
    color: #333;
    padding: 0.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.header p {
    font-size: 1.1rem;
    color: #666;
}

/* Header Logo */
.header-logo {
    max-height: 80px;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .header-logo {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        max-height: 50px;
    }
}

/* Stats Section */
.stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Version Display */
.version-display {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    user-select: none;
    transition: all 0.3s ease;
    left: auto;
}

.version-display:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Logout Button */
.logout-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1001;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    color: #212529;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 1rem;
    transition: all 0.2s ease-in-out;
}

.back-button:hover {
    background-color: #e9ecef;
    text-decoration: none;
    color: #212529;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: white;
    border-bottom: 1px solid #dee2e6;
}

.page-header .header-logo {
    height: 40px;
}