/* ------------------------------------------------------------
   1. Reset básico e corpo
------------------------------------------------------------ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ------------------------------------------------------------
   2. Botões em relevo
------------------------------------------------------------ */
.btn-relief {
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}
.btn-relief:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.25);
}

/* ------------------------------------------------------------
   3. Cards
------------------------------------------------------------ */
.card {
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-status {
    border-radius: 1rem;
    padding: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.card-aberto { background-color: #dc3545; color: #fff; }
.card-andamento { background-color: #ffc107; color: #212529; }
.card-concluido { background-color: #28a745; color: #fff; }

/* ------------------------------------------------------------
   4. Tables
------------------------------------------------------------ */
table.table {
    border-radius: 0.5rem;
    overflow: hidden;
}
table.table thead {
    background-color: #007bff;
    color: white;
}
table.table thead th {
    border: 0;
}
table.table tbody tr:hover {
    background-color: #e9f5ff;
}

/* ------------------------------------------------------------
   5. Formulários
------------------------------------------------------------ */
.form-control {
    border-radius: 0.5rem;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.2s;
}
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* ------------------------------------------------------------
   6. Modais
------------------------------------------------------------ */
.modal-content {
    border-radius: 1rem;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.modal-header {
    border-bottom: 1px solid #dee2e6;
}
.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* ------------------------------------------------------------
   7. Badges de status
------------------------------------------------------------ */
.badge-status {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}
.badge-aberto       { background-color: #dc3545; color: #fff; }
.badge-em-andamento { background-color: #ffc107; color: #212529; }
.badge-concluido    { background-color: #28a745; color: #fff; }

/* ------------------------------------------------------------
   8. Top Navigation
------------------------------------------------------------ */
.navbar {
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ------------------------------------------------------------
   9. Links e hover
------------------------------------------------------------ */
a {
    text-decoration: none;
    transition: all 0.2s;
}
a:hover {
    text-decoration: none;
    color: #0056b3;
}

/* ------------------------------------------------------------
  10. Responsividade adicional
------------------------------------------------------------ */
@media (max-width: 768px) {
    .card-status h2 { font-size: 1.5rem; }
    .card-status h5 { font-size: 1rem; }
    .btn { font-size: 0.9rem; padding: 0.4rem 0.75rem; }
}

/* ------------------------------------------------------------
  11. Alertas e Animações (Novo)
------------------------------------------------------------ */

/* Animação para piscar o fundo entre azul e vermelho (alerta) */
.piscar-alerta {
    animation: alert-blink 1s infinite;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
    color: #fff !important;
}

@keyframes alert-blink {
    0% { background-color: #0d6efd; } /* Azul Original */
    50% { background-color: #dc3545; } /* Vermelho Alerta */
    100% { background-color: #0d6efd; }
}

/* Opção alternativa: Piscar apenas o texto */
.piscar-texto {
    animation: text-blink 1.2s linear infinite;
    font-weight: bold;
}

@keyframes text-blink {
    50% { opacity: 0.5; }
}
