
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #8B4513;
    --primary-dark: #654321;
    --secondary: #D2B48C;
    --accent: #CD853F;
    --light: #F5F5DC;
    --dark: #333;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --gray: #6c757d;
}

body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.user-type-selector {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.user-type {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
}

.user-type.active {
    background: var(--primary);
    color: white;
}

 

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.logo {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.menu {
    list-style: none;
}

.menu-item a {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none
}

.menu-item a:hover {
    background: rgba(255,255,255,0.1);
    border-left: 4px solid var(--secondary);
}

.menu-item a.active {
    background: rgba(255,255,255,0.15);
    border-left: 4px solid var(--secondary);
}

.menu-item a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #fff;
    text-decoration: none
}

.main-content {
    margin-left: 280px;
    padding: 20px;
    min-height: 100vh;
}

.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h2 {
    color: var(--primary);
    margin-bottom: 5px;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

 

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Forms */
.form-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}
 
.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
    text-decoration: none;
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    color: var(--dark);
    text-decoration: none;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}
.btn-outline-secondary {
    background: transparent;
    color: var(--secondary);
    border: 1px solid var(--secondary);
}
.btn-outline-secondary:hover {
    background: var(--secondary);
    color: white;
}



.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.table-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-content {
    padding: 0;
    overflow-x: auto;
}

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

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--dark);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-aprovado { background: #d4edda; color: #155724; }
.status-execucao { background: #fff3cd; color: #856404; }
.status-atrasado { background: #f8d7da; color: #721c24; }
.status-pendente { background: #e2e3e5; color: #383d41; }
.status-finalizado { background: #d1ecf1; color: #0c5460; }

/* Tabs */
.tabs {
    display: flex;
    background: white;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    background: #f8f9fa;
    border-right: 1px solid #eee;
}

.tab.active {
    background: white;
    border-bottom: 3px solid var(--primary);
    font-weight: 600;
}

.tab-content {
    display: none;
    background: white;
    padding: 25px;
    border-radius: 0 0 10px 10px;
}

.tab-content.active {
    display: block;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--dark);
    font-size: 14px;
}

/* Checklist - formato botão, máx 4 por linha */
.checklist-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.checklist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background: #fff;
    color: #495057;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    margin: 0;
    font-size: 14px;
    text-align: center;
}

.checklist-btn:hover {
    border-color: #adb5bd;
    background: #e9ecef;
}

.checklist-btn .checklist-btn-check {
    display: none;
}

.checklist-btn:has(input:checked) {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.checklist-btn:has(input:checked) .checklist-btn-check {
    display: inline-flex;
}

.checklist-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

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

@media (max-width: 576px) {
    .checklist-group {
        grid-template-columns: 1fr;
    }
}

/* Estado do Suporte - 4 colunas por tipo */
.estado-suporte-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 20px;
}

.estado-suporte-group {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #dee2e6;
}

.estado-suporte-group-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark, #212529);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0d6efd;
}

.estado-suporte-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.estado-suporte-group-items .checklist-btn {
    flex: 0 1 auto;
}

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

@media (max-width: 576px) {
    .estado-suporte-grid {
        grid-template-columns: 1fr;
    }
}

/* Proposta de Conservação/Restauração (aba Execução) */
.proposta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.proposta-secao {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #dee2e6;
}

.proposta-secao-wide {
    grid-column: 1 / -1;
}

.proposta-titulo {
    font-weight: 600;
    font-size: 13px;
    color: #212529;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #dee2e6;
}

.proposta-opcoes, .proposta-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 6px;
}

.proposta-subtitulo {
    font-size: 12px;
    color: #6c757d;
    margin-right: 4px;
}

.proposta-cb {
    font-size: 13px;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.proposta-cb input {
    margin: 0;
}

.proposta-inline {
    margin-top: 8px;
}

.proposta-inline label {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 768px) {
    .proposta-grid {
        grid-template-columns: 1fr;
    }
}

/* Galeria de imagens - OS Restauração */
.btn-gallery-add {
    margin-bottom: 12px;
}

.gallery-os {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.gallery-os-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gallery-os-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-os-item .gallery-os-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.15s, background 0.15s;
}

.gallery-os-item .gallery-os-remove:hover {
    background: #dc3545;
    transform: scale(1.08);
}

.gallery-os-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    padding: 20px;
}

/* fallback para itens antigos (checklist-item) */
.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.quick-action-btn {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    border: 2px solid transparent;
}

.quick-action-btn:hover {
    border-color: var(--primary);
}

.quick-action-btn i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.professional-badge {
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 5px;
}

.filter-bar {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
} 