/* ========== ESTILOS ESPECÍFICOS DAS SEÇÕES ========== */

/* Projetos - Grid */
.projeto-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.projeto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.projeto-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.projeto-card .btn-delete {
}

.projeto-card button {
    height: 36px;
    box-sizing: border-box;
}

/* Setups */
.projects-section {
    margin-bottom: 30px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #1b5e20;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

/* Atividades */
.activities-container {
    margin-top: 15px;
}

.activity-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 80px 100px 100px 80px;
    gap: 10px;
    margin-bottom: 10px;
    align-items: end;
}

/* Resumo do Projeto */
.project-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.project-summary-item {
    text-align: center;
}

.project-summary-item h4 {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.project-summary-item p {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.project-summary-item small {
    font-size: 0.8em;
    color: #888;
}

/* Resumo Total */
.summary-section {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    padding: 15px 20px;
    border-radius: 12px;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.summary-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}

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

.summary-card {
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.summary-card h3 {
    font-size: 0.85em;
    margin-bottom: 4px;
    opacity: 0.9;
}

.summary-card p {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 2px;
}

.summary-card small {
    font-size: 0.8em;
    opacity: 0.8;
    display: block;
}

/* Timeline Gantt */
.gantt-table { width: 100%; border-collapse: collapse; font-size: 0.85em; color: white; }
.gantt-table th, .gantt-table td { border: 1px solid #ddd; padding: 6px 8px; }
.gantt-table thead th { background: #2a5f8f; text-align: center; white-space: nowrap; }
.gantt-table th.gantt-label, .gantt-table td.gantt-label { text-align: left; min-width: 200px; white-space: nowrap; }
.gantt-table th.gantt-esforco, .gantt-table td.gantt-esforco { text-align: center; min-width: 80px; white-space: nowrap; }
.gantt-table th.gantt-sem { min-width: 70px; font-size: 0.85em; }
.gantt-setup td { background: #2a5f8f; font-weight: bold; padding: 8px; }
.gantt-row { background: #9e9e9e; }
.gantt-row:nth-child(even) { background: #757575; }
.gantt-cell { position: relative; padding: 0 !important; height: 28px; }
.gantt-bar { position: absolute; top: 4px; bottom: 4px; background: #66bb6a; border-radius: 3px; min-width: 4px; border: 1px solid #1b5e20; }
.gantt-bar-setup { background: #66bb6a; }

.gantt-bar-ferias { background: #ff9800; }

.gantt-bar-feriado { background: rgba(180, 30, 40, 0.6); cursor: help; z-index: 0; }
.gantt-bar-feriado:hover { background: rgba(180, 30, 40, 0.85); }

/* Drag & Drop Setups */
.project-card.drag-over {
    border-top: 3px solid #1b5e20;
}
.drag-handle:active {
    cursor: grabbing;
}
