/* Main Application Styles - Complementary to global.css */

/* Additional Dashboard Specific Styles */
.dashboard-layout .page-content {
    /* Ensure proper spacing for dashboard */
    padding: 32px;
}

/* Dashboard specific components that are not in global.css */

/* Time and search components for header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.header-btn:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

/* Progress bars specific to dashboard */
.progress-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
    transition: width 0.5s ease;
    border-radius: var(--radius-sm);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Loading animations */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Ensure AJAX loaded content has proper styling */
.table-container .loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Responsive adjustments for main content */
@media (max-width: 768px) {
    .dashboard-layout .page-content {
        padding: 16px;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .header-btn {
        width: 32px;
        height: 32px;
    }
}