/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #2c3e50;
    color: #ffffff;
    transition: all 0.3s;
    height: 100vh;
    position: fixed;
    z-index: 1000;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 15px 20px;
    background: #273746;
    border-bottom: 1px solid #34495e;
}

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

#sidebar ul.components {
    padding: 0;
}

#sidebar ul li {
    border-bottom: 1px solid #34495e;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 0.95rem;
    display: block;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 400;
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #ffffff;
}

#sidebar ul li a:hover {
    background: #34495e;
    color: #ffffff;
}

#sidebar ul li a[aria-expanded="true"] {
    background: #34495e;
    color: #ffffff;
}

#sidebar ul ul a {
    font-size: 0.9rem !important;
    padding-left: 50px !important;
    background: #2c3e50;
    color: #ecf0f1;
}

#sidebar ul ul a:hover {
    background: #34495e;
    color: #ffffff;
}

/* Content */
#content {
    width: calc(100% - 250px);
    min-height: 100vh;
    margin-left: 250px;
    transition: all 0.3s;
    padding: 20px;
}

#content.active {
    width: 100%;
    margin-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
        margin-left: 0;
    }
    
    #content.active {
        width: calc(100% - 250px);
        margin-left: 250px;
    }
}

/* Additional Styles */
.navbar {
    padding: 15px 10px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

#sidebarCollapse {
    background-color: #2c3e50;
    border-color: #2c3e50;
    transition: all 0.3s;
}

#sidebarCollapse:hover {
    background-color: #34495e;
    border-color: #34495e;
}

#sidebarCollapse i {
    color: #ffffff;
}

.dropdown-menu {
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #333333;
    padding: 8px 15px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.dropdown-divider {
    margin: 5px 0;
    border-top: 1px solid #f0f0f0;
}

.table td:first-child {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: normal;
    font-size: 0.9em;
    padding: 0.5rem;
}

.table td:first-child {
    max-width: 150px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-weight: normal !important;
    font-size: 0.85em !important;
    padding: 0.25rem 0.5rem !important;
    line-height: 1.2 !important;
}

/* Add specific class for employee name cells */
.employee-name {
    display: block;
    max-width: 150px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.status-btn {
    width: 40px;
    height: 40px;
    margin: 2px;
    border-radius: 4px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.status-P { background-color: #28a745; } /* Presença */
.status-F { background-color: #dc3545; } /* Falta */
.status-A { background-color: #ffc107; color: black; } /* Atestado */
.status-D { background-color: #17a2b8; } /* Dúvida */
.status-M { background-color: #6c757d; } /* Meio Período */

.calendar-cell {
    text-align: center;
    min-width: 40px;
    cursor: pointer;
    padding: 5px !important;
}

.selected-status {
    outline: 3px solid #000;
}

.form-controls {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .main {
        padding-left: 0;
        width: 100%;
    }
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
}

.calendar-cell {
    text-align: center;
    cursor: pointer;
    min-width: 40px;
}

.status-btn {
    min-width: 120px;
}

.status-btn.selected-status {
    outline: 3px solid #000;
}

.status-P {
    background-color: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.status-F {
    background-color: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.status-A {
    background-color: #ffc107;
    color: black;
    padding: 2px 6px;
    border-radius: 3px;
}

.status-D {
    background-color: #17a2b8;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.status-M {
    background-color: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
}

.inativo {
    background-color: #f8d7da;
    color: #721c24;
}

/* Estilos dos cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Estilos dos badges */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

/* Estilos dos formulários */
.form-label {
    font-weight: 500;
}

.form-select {
    cursor: pointer;
}

/* Estilos das mensagens de alerta */
.alert {
    margin-bottom: 1.5rem;
}

/* Estilos para informações de debug */
.debug-info {
    font-family: monospace;
    font-size: 0.9rem;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .row {
        margin: 0 -0.5rem;
    }
    
    .col-md-3, .col-md-6 {
        padding: 0 0.5rem;
    }
}