/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 70px; /* Espaço para o menu fixo */
    padding-bottom: 80px; /* Espaço para o rodapé fixo */
}

/* Navegação */
nav {
    background: #2c3e50;
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: #34495e;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards do Dashboard Melhorados */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.card .number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Formulários Melhorados */
form {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 2rem auto;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

form input, form select, form textarea {
    width: 100%;
    padding: 0.9rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

form button:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

form button:active {
    transform: translateY(0);
}

/* Login Melhorado */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 80px;
}

.login-container {
    max-width: 420px;
    width: 100%;
    margin: 2rem auto;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    text-align: center;
    height: fit-content;
}

.login-container h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
}

.login-container h2::before {
    content: "🔐";
    display: inline;
    font-size: 2rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.login-container input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-container input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-container button {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Mensagens Melhoradas */
.success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.success::before {
    content: "✓";
    font-size: 1.5rem;
    font-weight: bold;
}

.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1.2rem;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
}

.error::before {
    content: "⚠";
    font-size: 1.5rem;
    font-weight: bold;
}

/* Tabelas Melhoradas */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tr:hover {
    background: #f8f9fa;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: #e8f4f8;
    transform: scale(1.01);
}

/* Botões Melhorados - Padrão Moderno */
.btn {
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin: 0.25rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    box-shadow: 0 2px 4px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d68910);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.btn-light {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background: #e2e6ea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

/* Footer Fixo Moderno */
footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    color: white !important;
    text-align: center !important;
    padding: 1rem !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2) !important;
    z-index: 9999 !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

footer p {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    color: white !important;
}

footer .footer-icon {
    font-size: 1.2rem !important;
}

footer span {
    color: white !important;
}

/* Container principal com espaço para footer */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem 2rem 1rem;
    flex: 1;
}
/* Navegação Principal */
/* Navegação Principal */
.main-nav {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 0.5rem;
    flex-wrap: nowrap;
    gap: 2rem;
}

.nav-brand {
    margin-right: auto;
}

.nav-brand h3 {
    color: white;
    margin: 0;
    padding: 0.8rem 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    font-weight: 700;
}

.nav-brand h3::before {
    content: "🔧";
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 500;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.nav-menu a.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
    color: white;
    font-weight: 700;
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.4);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    padding: 0 0 0 1.5rem;
    border-left: 2px solid rgba(255,255,255,0.3);
}

.nav-user span {
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Não herdar estilos do menu nos itens do dropdown do usuário */
.main-nav .user-menu a.user-menu-item {
    color: #1f2937 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: block !important;
    gap: 0 !important;
    padding: 8px 12px !important;
}

/* Responsividade Melhorada */
@media (max-width: 768px) {
    body {
        padding-bottom: 120px; /* Mais espaço no mobile para rodapé */
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .nav-brand h3 {
        font-size: 1.1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
    
    .nav-user {
        margin-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 1rem;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-logout {
        width: 100%;
        text-align: center;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 0.5rem 2rem 0.5rem;
    }
    
    form {
        padding: 1.5rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    footer {
        font-size: 0.8rem;
        padding: 1rem 0.5rem;
    }
    
    footer p {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h3 {
        font-size: 1rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.7rem;
    }
    
    .card .number {
        font-size: 1.5rem;
    }
    
    table {
        font-size: 0.8rem;
    }
}

/* Botões de ação nas tabelas */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Quick actions melhoradas */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.quick-action-card a {
    text-decoration: none;
    color: #2c3e50;
    display: block;
}

.quick-action-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.quick-action-card .label {
    font-weight: 600;
    font-size: 1rem;
}

/* Filtros Melhorados */
.filters {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filters form {
    padding: 0;
    box-shadow: none;
    margin: 0;
    max-width: 100%;
}

.filters .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filters .form-group {
    display: flex;
    flex-direction: column;
}

.filters label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.filters input,
.filters select {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filters input:focus,
.filters select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Dashboard header */
.dashboard-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-header h2 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
}

.welcome-user {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.welcome-user strong {
    color: #3498db;
}

/* Seções do Dashboard */
.stats-section,
.actions-section {
    margin-bottom: 2.5rem;
}

.section-title {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    border-left: 4px solid #3498db;
}

/* Grid para stats + gráfico */
.stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Container do gráfico */
.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.8cm;
    height: 96%;
}

.chart-legend {
    margin-top: 1.5rem;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #2c3e50;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

.legend-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ecf0f1;
    text-align: center;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Cards do Dashboard - Grid responsivo */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 0;
}

.card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: height 0.3s ease;
}

.card:hover::before {
    height: 8px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card .number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

.card small {
    color: #7f8c8d;
    font-size: 0.85rem;
}

/* Cards coloridos por tipo */
.card-blue::before { background: linear-gradient(90deg, #3498db, #2980b9); }
.card-blue .number { background: linear-gradient(135deg, #3498db, #2980b9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-orange::before { background: linear-gradient(90deg, #f39c12, #e67e22); }
.card-orange .number { background: linear-gradient(135deg, #f39c12, #e67e22); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-yellow::before { background: linear-gradient(90deg, #f1c40f, #f39c12); }
.card-yellow .number { background: linear-gradient(135deg, #f1c40f, #f39c12); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-green::before { background: linear-gradient(90deg, #27ae60, #229954); }
.card-green .number { background: linear-gradient(135deg, #27ae60, #229954); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-purple::before { background: linear-gradient(90deg, #9b59b6, #8e44ad); }
.card-purple .number { background: linear-gradient(135deg, #9b59b6, #8e44ad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.card-pink::before { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.card-pink .number { background: linear-gradient(135deg, #e74c3c, #c0392b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Quick Actions melhoradas */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-action-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    display: block;
    color: #2c3e50;
}

.quick-action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-decoration: none;
}

.quick-action-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.quick-action-card .label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.quick-action-card .description {
    font-size: 0.85rem;
    color: #7f8c8d;
}

/* Ações por tipo com cores */
.action-primary { border-color: #3498db; }
.action-primary:hover { border-color: #3498db; background: linear-gradient(135deg, rgba(52,152,219,0.05), rgba(41,128,185,0.05)); }

.action-info { border-color: #1abc9c; }
.action-info:hover { border-color: #1abc9c; background: linear-gradient(135deg, rgba(26,188,156,0.05), rgba(22,160,133,0.05)); }

.action-warning { border-color: #f39c12; }
.action-warning:hover { border-color: #f39c12; background: linear-gradient(135deg, rgba(243,156,18,0.05), rgba(230,126,34,0.05)); }

.action-success { border-color: #27ae60; }
.action-success:hover { border-color: #27ae60; background: linear-gradient(135deg, rgba(39,174,96,0.05), rgba(34,153,84,0.05)); }

.action-dark { border-color: #34495e; }
.action-dark:hover { border-color: #34495e; background: linear-gradient(135deg, rgba(52,73,94,0.05), rgba(44,62,80,0.05)); }

/* Status badges melhorados */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: black;
}
.status-recebida { background: linear-gradient(135deg, #3498db, #2980b9); }
.status-em-atendimento { background: linear-gradient(135deg, #f39c12, #e67e22); }
.status-aguardando-peca { background: linear-gradient(135deg, #e67e22, #d35400); }
/* Scrollbar personalizada - oculta */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    display: none;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Suporte para Firefox */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====== MODAIS RESPONSIVOS ====== */
.modal-impressao {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
}

/* Modal customizado geral */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
}

.custom-modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content.compact-modal {
    padding: 1.5rem;
    max-width: 400px;
}

.modal-content.print-modal {
    max-width: 90vw;
    max-height: 90vh;
    width: 90vw;
    padding: 1.5rem;
}

/* Modal de aviso/confirmação */
.modal-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-dialog.modal-warning {
    border-left: 5px solid #f39c12;
}

.modal-dialog.modal-error {
    border-left: 5px solid #e74c3c;
}

.modal-dialog.modal-success {
    border-left: 5px solid #27ae60;
}

.modal-dialog.modal-info {
    border-left: 5px solid #3498db;
}

.modal-dialog .modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    display: block;
}

.modal-dialog .modal-title {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.modal-dialog .modal-message {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

.modal-dialog .modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-dialog .modal-buttons button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-content p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-content button {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-content .btn {
    margin: 0.5rem;
}

.close-modal-print {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.close-modal-print:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.1);
}

/* Responsividade para modais */
@media (max-width: 768px) {
    .custom-modal,
    .modal-impressao {
        padding: 0.5rem;
    }
    
    .modal-content,
    .modal-dialog {
        max-width: 100%;
        width: 100%;
        padding: 1.5rem;
        max-height: 95vh;
        border-radius: 10px;
    }
    
    .modal-content.compact-modal {
        padding: 1.25rem;
    }
    
    .modal-content.print-modal {
        max-width: 100%;
        width: 100%;
        max-height: 95vh;
        padding: 1rem;
    }
    
    .modal-content h3,
    .modal-dialog .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-content p,
    .modal-dialog .modal-message {
        font-size: 0.95rem;
    }
    
    .modal-content button,
    .modal-dialog button {
        width: 100%;
        min-height: 48px;
        margin: 0.5rem 0 !important;
        font-size: 1rem;
    }
    
    .modal-content div[style*="display:flex"],
    .modal-dialog .modal-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .modal-dialog .modal-buttons button {
        flex: 1 !important;
        min-width: unset !important;
    }
    
    .close-modal-print {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
        top: 0.75rem;
        right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modal-content,
    .modal-dialog {
        padding: 1rem;
    }
    
    .modal-content h3,
    .modal-dialog .modal-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .modal-content p,
    .modal-dialog .modal-message {
        font-size: 0.9rem;
    }
    
    .modal-content button,
    .modal-dialog button {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    
    .modal-dialog .modal-icon {
        font-size: 2rem;
    }
    
    #iframeImpressao {
        height: 60vh !important;
    }
}

/* =====================================================
   CHECKBOX ESTILIZADO
   ===================================================== */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
}

.checkbox-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:hover {
    border-color: #3498db;
}

.checkbox-container input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #27ae60, #229954);
    border-color: #27ae60;
}

.checkbox-container input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-container input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.checkbox-container span:not(.checkmark) {
    font-weight: 500;
    color: #2c3e50;
}

/* Estilo alternativo para checkmark span */
.checkbox-container .checkmark {
    display: none;
}
