/* Desvio Padrão Manager - Main Styles */

:root {
    --sidebar-width: 250px;
    --header-height: 60px;
    --primary-color: #1976d2;
    --background-color: #f5f5f5;
}

html, body {
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: var(--background-color);
}

#app {
    height: 100%;
}

/* Loading Screen with Brand Colors */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #143A63 0%, #1B4B7E 50%, #4A8FC7 100%);
}

.loading-screen::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-image: url('/images/Logotipo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    margin-bottom: 80px;
}

.loading-screen .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 140px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-screen p {
    margin-top: 24px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Loading Container (used in auth checks) */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px;
}

.loading-container p {
    margin-top: 16px;
    color: #666;
}

/* Not Found Page */
.not-found {
    text-align: center;
    padding: 60px 20px;
}

.not-found h1 {
    color: #333;
    margin-bottom: 16px;
}

.not-found p {
    color: #666;
    margin-bottom: 24px;
}

/* Blazor Error UI */
#blazor-error-ui {
    background: #ffeb3b;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 12px 24px;
    position: fixed;
    right: 0;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 8px;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #333;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

/* Status Badges */
.status-scheduled { background-color: #2196f3; color: white; }
.status-completed { background-color: #4caf50; color: white; }
.status-cancelled { background-color: #f44336; color: white; }
.status-noshow { background-color: #ff9800; color: white; }
.status-postponed { background-color: #9c27b0; color: white; }

/* Responsive */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
