:root {
    /* Modo Claro */
    --primary-color: #25D366;
    --primary-dark: #128C7E;
    --secondary-color: #34495e;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 20px 40px rgba(0,0,0,0.1);
    --border-radius: 16px;
    
    /* Cores do modo claro */
    --body-bg: var(--background-gradient);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-border: rgba(255, 255, 255, 0.2);
    --text-primary: var(--secondary-color);
    --text-secondary: #6c757d;
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-border: #e9ecef;
    --input-text: #495057;
    --input-focus-border: var(--primary-color);
    --input-focus-bg: white;
    --status-option-bg: white;
    --status-option-border: #e9ecef;
    --status-option-active-bg: rgba(37, 211, 102, 0.1);
    --status-option-active-border: var(--primary-color);
    --alert-bg: rgba(255, 255, 255, 0.9);
    --theme-toggle-bg: rgba(255, 255, 255, 0.2);
    --theme-toggle-color: white;
}

[data-bs-theme="dark"] {
    /* Modo Escuro */
    --body-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --card-bg: rgba(45, 45, 45, 0.95);
    --card-border: rgba(64, 64, 64, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --input-bg: rgba(51, 51, 51, 0.8);
    --input-border: #404040;
    --input-text: #e4e4e4;
    --input-focus-border: var(--primary-color);
    --input-focus-bg: #3d3d3d;
    --status-option-bg: #333333;
    --status-option-border: #404040;
    --status-option-active-bg: rgba(37, 211, 102, 0.2);
    --status-option-active-border: var(--primary-color);
    --alert-bg: rgba(51, 51, 51, 0.9);
    --theme-toggle-bg: rgba(255, 255, 255, 0.1);
    --theme-toggle-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--body-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* Animação de fundo */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

[data-bs-theme="dark"] body::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.logo-section {
    margin-bottom: 2rem;
}

.logo-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    animation: pulse 2s infinite;
}

.logo-icon i {
    color: white;
    font-size: 2rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.app-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.app-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.form-control {
    border: 2px solid var(--input-border);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    position: relative;
    padding-left: 3rem;
    color: var(--input-text);
}

.form-control:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
    background: var(--input-focus-bg);
    color: var(--input-text);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 2;
    transition: color 0.3s ease;
}

.btn-login {
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.status-selector {
    margin-top: 1.5rem;
    text-align: left;
}

.status-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.status-option {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid var(--status-option-border);
    border-radius: 8px;
    background: var(--status-option-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.status-option input[type="radio"] {
    display: none;
}

.status-option.active {
    border-color: var(--status-option-active-border);
    background: var(--status-option-active-bg);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.25rem;
}

.status-ativo .status-indicator { background: #28a745; }
.status-ausente .status-indicator { background: #ffc107; }
.status-ocupado .status-indicator { background: #dc3545; }

.alert {
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    background: var(--alert-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Estilos específicos para alertas de erro */
.alert-danger {
    background: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
}

.alert-danger i {
    color: #dc3545 !important;
}

/* Estilos para campos inválidos */
.form-control.is-invalid {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.05) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: block !important;
    color: #dc3545 !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
}

/* Estilos para alertas de sucesso */
.alert-success {
    background: rgba(40, 167, 69, 0.1) !important;
    color: #28a745 !important;
    border: 1px solid rgba(40, 167, 69, 0.3) !important;
}

.alert-success i {
    color: #28a745 !important;
}

/* Estilos para alertas de aviso */
.alert-warning {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
}

.alert-warning i {
    color: #ffc107 !important;
}

/* Estilos para alertas de informação */
.alert-info {
    background: rgba(23, 162, 184, 0.1) !important;
    color: #17a2b8 !important;
    border: 1px solid rgba(23, 162, 184, 0.3) !important;
}

.alert-info i {
    color: #17a2b8 !important;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

.loading {
    display: none;
}

.loading.show {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsividade */
@media (max-width: 480px) {
    .login-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .app-title {
        font-size: 1.5rem;
    }
}

/* Dark mode toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--theme-toggle-bg);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: var(--theme-toggle-color);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Invalid feedback no modo escuro */
[data-bs-theme="dark"] .invalid-feedback {
    color: #ff6b6b !important;
}

[data-bs-theme="dark"] .form-control.is-invalid {
    border-color: #ff6b6b !important;
    background: rgba(255, 107, 107, 0.1) !important;
}

/* Alertas no modo escuro */
[data-bs-theme="dark"] .alert-danger {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(220, 53, 69, 0.4) !important;
}

[data-bs-theme="dark"] .alert-danger i {
    color: #ff6b6b !important;
}

[data-bs-theme="dark"] .alert-success {
    background: rgba(40, 167, 69, 0.2) !important;
    color: #51cf66 !important;
    border: 1px solid rgba(40, 167, 69, 0.4) !important;
}

[data-bs-theme="dark"] .alert-success i {
    color: #51cf66 !important;
}

[data-bs-theme="dark"] .alert-warning {
    background: rgba(255, 193, 7, 0.2) !important;
    color: #ffd43b !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
}

[data-bs-theme="dark"] .alert-warning i {
    color: #ffd43b !important;
}

[data-bs-theme="dark"] .alert-info {
    background: rgba(23, 162, 184, 0.2) !important;
    color: #74c0fc !important;
    border: 1px solid rgba(23, 162, 184, 0.4) !important;
}

[data-bs-theme="dark"] .alert-info i {
    color: #74c0fc !important;
}

/* Tooltip no modo escuro */
[data-bs-theme="dark"] .tooltip-inner {
    background-color: #333333 !important;
    color: #ffffff !important;
    border: 1px solid #404040;
}

[data-bs-theme="dark"] .tooltip.bs-tooltip-top .arrow::before,
[data-bs-theme="dark"] .tooltip.bs-tooltip-bottom .arrow::before,
[data-bs-theme="dark"] .tooltip.bs-tooltip-start .arrow::before,
[data-bs-theme="dark"] .tooltip.bs-tooltip-end .arrow::before {
    border-color: #333333 !important;
}



