body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

.navbar-brand img {
    margin-right: 10px;
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Estilos para os quadrados de equipamentos - REDUZIDOS */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(35px, 1fr)); /* Reduzido de 50px para 35px */
    gap: 3px; /* Reduzido de 5px para 3px */
    margin-bottom: 15px;
}

.equipment-box {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 3px; /* Reduzido de 4px para 3px */
    cursor: pointer;
    font-size: 0.7rem; /* Reduzido de 0.8rem para 0.7rem */
}

/* Cores de status */
.status-verde { background-color: #28a745; }
.status-amarelo { background-color: #ffc107; color: #212529; }
.status-vermelho { background-color: #dc3545; }
.status-azul { background-color: #007bff; }
.status-roxo { background-color: #6f42c1; }
.status-laranja { background-color: #fd7e14; }
.status-cinza { background-color: #6c757d; }

/* Estilos para o modal de detalhes */
.equipment-details {
    margin-top: 10px;
}

.equipment-details dt {
    font-weight: bold;
}

.equipment-details dd {
    margin-bottom: 10px;
}

/* Estilos para a barra de status */
.status-bar {
    height: 25px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Estilo para observações em formato horizontal */
.observation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.observation-item {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    color: white;
    font-size: 0.9rem;
    flex: 0 1 auto;
    max-width: 300px;
}

.observation-item.status-amarelo {
    color: #212529;
}

/* Alerta de notificação na página */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1050;
    display: none;
    max-width: 300px;
}

/* Responsividade */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    }
    
    .equipment-box {
        font-size: 0.6rem;
    }
    
    .btn-group-sm {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn-group-sm .btn {
        margin-bottom: 5px;
        flex: 1 0 auto;
    }
}

/* Estilos para o dashboard analítico */
.kpi-card {
    text-align: center;
    padding: 15px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

.kpi-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

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

/* Estilos para o coletor */
.coletor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    max-width: 200px;
    pointer-events: none;
}

.coletor-equipment-info {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
    pointer-events: auto;
}

.coletor-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
}

.coletor-btn-success {
    background-color: #28a745;
}

.coletor-observation-form {
    display: none;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    pointer-events: auto;
}

.coletor-observation-form textarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Estilos para manutenção */
.ticket-card {
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.ticket-card:hover {
    transform: translateY(-3px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-status {
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 3px;
}

.ticket-status-1 { background-color: #dc3545; color: white; }
.ticket-status-2 { background-color: #ffc107; color: #212529; }
.ticket-status-3 { background-color: #17a2b8; color: white; }
.ticket-status-4 { background-color: #28a745; color: white; }

.ticket-details {
    margin-top: 10px;
}

.ticket-details dt {
    font-weight: bold;
}

.ticket-details dd {
    margin-bottom: 10px;
}

.ticket-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Estilos para login e admin */
.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header img {
    max-height: 80px;
    margin-bottom: 20px;
}

.admin-table th, .admin-table td {
    vertical-align: middle;
}

.admin-actions {
    display: flex;
    gap: 5px;
}

.form-container {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.role-checkbox {
    margin-right: 15px;
}
