/* Estilos base para o video wall */
:root {
    --primary-color: #2196F3;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #F44336;
    --info-color: #00BCD4;
    --dark-bg: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

body.video-wall {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Barra superior com relógio e título */
.clock-bar {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.clock-display #currentTime {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.clock-display #currentDate {
    font-size: 1.2rem;
    opacity: 0.9;
    text-transform: capitalize;
}

.clock-display .separator {
    color: white;
    font-size: 2rem;
    opacity: 0.5;
}

/* Header título */
.header-title h1 {
    font-size: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-title i {
    color: var(--primary-color);
}

/* Contadores verticais */
.vote-counters-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100vh - 200px);
}

.vote-counter {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 12px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.counter-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.counter-icon {
    font-size: 1.8rem;
}

.counter-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin: 8px 0;
    text-align: center;
}

.yes-votes .counter-icon,
.yes-votes .counter-value {
    color: var(--success-color);
}

.no-votes .counter-icon,
.no-votes .counter-value {
    color: var(--danger-color);
}

.abstain-votes .counter-icon,
.abstain-votes .counter-value {
    color: #9e9e9e;
}

.total-votes .counter-icon,
.total-votes .counter-value {
    color: var(--primary-color);
}

.present-votes .counter-icon,
.present-votes .counter-value {
    color: #4CAF50;
}

.absent-votes .counter-icon,
.absent-votes .counter-value {
    color: #9e9e9e;
}

.bg-forest {
    background-color: #4CAF50 !important;
}

.progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: auto;
}

.progress-bar {
    transition: width 0.5s ease;
    font-size: 0.8rem;
    line-height: 8px;
}

/* Slideshow */
.slideshow-container {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    height: calc(100vh - 200px);
}

.slides {
    position: relative;
    height: 100%;
}

.slide {
    display: none;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slide-image-container {
    position: relative;
    width: 100%;
    height: 65%;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.5);
    height: 35%;
    display: flex;
    flex-direction: column;
}

.slide-info h2 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 2rem;
}

.slide-info .description {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.slide-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    flex: 1;
}

.slide-info li {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
}

.slide-info li:before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
}

.slide-footer {
    padding-top: 12px;
    margin-top: auto;
}

.slide-footer span {
    font-size: 1.1rem;
}

.budget {
    color: var(--success-color);
}

.budget:before {
    content: "💰";
}

.deadline {
    color: var(--warning-color);
}

.deadline:before {
    content: "⏱️";
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Controles do slideshow */
.slide-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.prev-slide,
.next-slide {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.prev-slide i,
.next-slide i {
    font-size: 1.5rem;
}

.prev-slide:hover,
.next-slide:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    pointer-events: auto;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

.indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide.active {
    animation: slideIn 0.5s ease-out;
}

/* Responsividade */
@media (max-width: 1400px) {
    .counter-value {
        font-size: 2.5rem;
    }
    
    .counter-header h3 {
        font-size: 1.2rem;
    }
    
    .counter-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .counter-value {
        font-size: 2.2rem;
    }
    
    .counter-header h3 {
        font-size: 1.1rem;
    }
    
    .slide-info h2 {
        font-size: 1.8rem;
    }
    
    .slide-info li {
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .slide-info ul {
        grid-template-columns: 1fr;
    }
    
    .vote-counter {
        min-height: 100px;
    }
}

@media (max-width: 768px) {
    .vote-counters-vertical {
        height: auto;
        margin-top: 20px;
    }
    
    .vote-counter {
        padding: 10px;
        min-height: 90px;
    }
    
    .counter-value {
        font-size: 2rem;
        margin: 5px 0;
    }
    
    .counter-header h3 {
        font-size: 1rem;
    }
    
    .counter-icon {
        font-size: 1.3rem;
    }
    
    .slideshow-container {
        height: calc(100vh - 400px);
    }
    
    .slide-image {
        height: 60%;
    }
    
    .slide-info {
        height: 40%;
    }
}

/* Grid de totais */
.totals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.total-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.total-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.total-value {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.total-item.present .total-value,
.total-item.present .total-label i {
    color: #4CAF50;
}

.total-item.absent .total-value,
.total-item.absent .total-label i {
    color: #9e9e9e;
}