body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f7fa;
    color: #333;
}

.btn {
    padding: 10px 20px;
    border: 1px solid #007bff;
    border-radius: 20px;
    background-color: transparent;
    color: #007bff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: #007bff;
    color: #fff;
}

.header {
    background-color: #fff;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo {
    height: 50px;
}

.nav-buttons .btn {
    margin-left: 10px;
    padding: 10px 20px;
    border: 1px solid #007bff;
    border-radius: 20px;
    background-color: transparent;
    color: #007bff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-buttons .btn:hover {
    background-color: #007bff;
    color: #fff;
}

.main-content {
    text-align: center;
    padding-top: 100px;
}

.main-content h1 {
    font-size: 3rem;
    color: #004a99;
}

.main-content p {
    font-size: 1.2rem;
    color: #555;
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.ativo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.modal-container h2 {
    color: #004a99;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.form-group .password-wrapper {
    position: relative;
}

.form-group .password-wrapper input {
    padding-right: 40px; /* space for the icon */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}


.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.modal-buttons .btn {
    flex: 1;
    padding: 12px;
    border-radius: 25px;
    border: 1px solid #007bff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    background-color: #007bff;
    color: #fff;
}

.btn-login:hover {
    background-color: #0056b3;
}

.btn-register {
    background-color: transparent;
    color: #007bff;
}

.btn-register:hover {
    background-color: #007bff;
    color: #fff;
}

.forgot-password {
    display: block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

#loginErrorMessage {
    color: red;
    margin-top: 10px;
}

.modal-dialog {
    max-width: 500px;
    width: 100%;
}

.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.modal-title {
    font-weight: bold;
    font-size: 1.75rem;
    color: #0d2a4f;
}

.modal-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.modal-body p {
    color: #6c757d;
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.form-control {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.input-group-text {
    background-color: #f8f9fa;
    border-left: none;
}

.btn-primary {
    background-color: #5A6778;
    border-color: #5A6778;
}

.btn-primary:hover {
    background-color: #4a5563;
    border-color: #4a5563;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

/* Estilos do Menu Lateral */
.welcome-message {
    margin-right: 15px;
    font-weight: 600;
    color: #333;
}

/* Header com menu toggle */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle:hover span {
    background-color: #007bff;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.sidebar-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    color: #333;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
    color: #007bff;
}

.sidebar-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.sidebar-text {
    font-weight: 500;
    font-size: 1rem;
}

/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* Main content adjustment */
.main-with-sidebar {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .sidebar.open {
        left: 0;
    }
}

@media (min-width: 769px) {
    .sidebar.open + .sidebar-overlay {
        display: none;
    }
}

/* Toast Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.toast-content {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast-message {
    flex: 1;
    margin-right: 10px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Page Header Styles */
.page-header {
    background: white;
    padding: 30px 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
}

.page-header h1 {
    margin: 0 0 10px 0;
    color: #004a99;
    font-size: 2rem;
}

.page-header p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Content Wrapper */
.content-wrapper {
    padding: 0 40px 40px 40px;
}

/* Toolbar */
.toolbar {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.toolbar .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

/* Grid Styles */
.k-grid {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.k-grid-header {
    background: #f8f9fa;
}

.k-grid-header th {
    background: #f8f9fa;
    border-color: #dee2e6;
    font-weight: 600;
    color: #495057;
}

.k-grid-toolbar {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 20px 20px 20px;
    }
    
    .page-header {
        padding: 20px;
    }
    
    .toolbar {
        flex-direction: column;
    }
    
    .toolbar .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Modal Drawer (Lateral) */
.modal-drawer {
    position: fixed;
    top: 0;
    right: -70%;
    width: 70%;
    height: 100%;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.modal-drawer.ativo {
    right: 0;
}

.modal-drawer .modal-header {
    background-color: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-drawer .modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-drawer .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-drawer .modal-close:hover {
    background-color: #e9ecef;
    color: #333;
}

.modal-drawer .modal-body {
    padding: 20px;
}

.modal-drawer .form-group {
    margin-bottom: 20px;
}

.modal-drawer .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.modal-drawer .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.modal-drawer .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.modal-drawer .form-row {
    display: flex;
    gap: 15px;
}

.modal-drawer .form-row .form-group {
    flex: 1;
}

.modal-drawer .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    margin-top: 20px;
}

.modal-drawer .form-actions .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-drawer .form-actions .btn-outline {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
}

.modal-drawer .form-actions .btn-outline:hover {
    background-color: #6c757d;
    color: #fff;
}

.modal-drawer .form-actions .btn-primary {
    background-color: #007bff;
    border: 1px solid #007bff;
    color: #fff;
}

.modal-drawer .form-actions .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Indicadores */
.indicadores-container {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.indicador {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.indicador:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.indicador.ativo {
    background-color: #007bff;
    color: #fff;
}

.indicador-valor {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.indicador-label {
    font-size: 0.9rem;
    color: #666;
}

.indicador.ativo .indicador-label {
    color: #fff;
}

.indicador.ativos {
    border-left: 4px solid #28a745;
}

.indicador.inativos {
    border-left: 4px solid #dc3545;
}

/* Responsividade para o modal drawer */
@media (max-width: 768px) {
    .modal-drawer {
        width: 100%;
        right: -100%;
    }
    
    .modal-drawer .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .indicadores-container {
        gap: 10px;
    }
    
    .indicador {
        min-width: 120px;
        padding: 15px;
    }
    
    .indicador-valor {
        font-size: 1.5rem;
    }
} 

/* Menu do Usuário */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 25px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.user-menu-trigger:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.user-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.dropdown-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s ease;
}

.user-menu-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-menu-items,
.user-menu-items li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

.user-menu-link {
    width: 100%;
    box-sizing: border-box;
}

.user-menu-header {
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-full-name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-divider {
    height: 1px;
    background-color: #f1f3f4;
    margin: 0;
}

.user-menu-items {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.user-menu-item {
    margin: 0;
}

.user-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.user-menu-link:hover {
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.user-menu-link-danger {
    color: #dc3545;
}

.user-menu-link-danger:hover {
    background-color: #fff5f5;
    color: #dc3545;
}

/* Responsividade para o menu do usuário */
@media (max-width: 768px) {
    .user-menu-trigger {
        min-width: auto;
        padding: 6px 10px;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu-dropdown {
        width: 250px;
        right: -50px;
    }
    
    .user-menu-header {
        padding: 15px;
    }
    
    .user-avatar-large {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .user-full-name {
        font-size: 14px;
    }
    
    .user-email {
        font-size: 12px;
    }
}