﻿/* ==============================================
   GOTEST INDUSTRIAL v2.0 - ESTILO GLOBAL
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 50px;
    background: white;
    border-radius: 8px;
    padding: 5px;
}

.system-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* CARDS */
.card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0056b3;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BOTÕES */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

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

.btn-primary { background: #0056b3; color: white; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-warning { background: #ffc107; color: #212529; }
.btn-info { background: #17a2b8; color: white; }
.btn-secondary { background: #6c757d; color: white; }

.btn-block-large {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    height: auto;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* FORMULÁRIOS */
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-control:focus, .form-select:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,86,179,0.1);
}

/* TABELAS */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: #333;
    border-bottom: 3px solid #dee2e6;
}

.table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.table tbody tr:hover { background: #f8f9fa; }

/* STATUS */
.status-approved {
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}
.status-rejected {
    background: #dc3545;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}
.status-pending {
    background: #ffc107;
    color: #212529;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}
.status-repaired {
    background: #17a2b8;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* MODAIS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 35px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* GRID */
.grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 992px) { .grid-3x3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-3x3 { grid-template-columns: 1fr; } }

.btn-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.btn-board:hover {
    border-color: #0056b3;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,86,179,0.2);
}

/* AVISOS */
.warning-badge {
    position: fixed;
    top: 20px;
    right: 100px;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
    z-index: 1000;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* ===== BANNER DE AVISO ===== */
.warning-banner {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #721c24;
    animation: pulse 2s infinite;
}
.warning-banner i { color: #dc3545; }
@keyframes pulse { 0% { opacity:1; } 50% { opacity:0.9; } 100% { opacity:1; } }

/* ===== CONTROLE DE PAUSA ===== */
.pause-card {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #856404;
}
.pause-card i { color: #856404; }
