@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap");

:root {
    --primary-purple: #9b51e0;
    --bg-light: #f5f7ff;
    --text-dark: #333;
    --card-bg: #ffffff;
    --progress-bg: #f0f0f0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
}

.attendance-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-purple);
    text-align: center;
    margin-bottom: 0;
}

.attendance-card {
    background-color: var(--card-bg);
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-purple);
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Election Times */
.election-times {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.time-item {
    font-size: 18px;
    font-weight: 600;
}

.time-label {
    color: var(--text-dark);
}

.time-value {
    color: var(--primary-purple);
}

.times-divider {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ccc;
}

/* Stats Layout */
.stats-content {
    display: flex;
    gap: 40px;
}

.stats-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-info {
    font-size: 18px;
    font-weight: 600;
}

.stat-label {
    color: var(--text-dark);
}

.stat-value {
    color: var(--primary-purple);
}

/* Progress Bars */
.progress-container {
    width: 100%;
    height: 20px;
    background-color: var(--progress-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
    transition: width 0.5s ease;
}

/* Time Remaining Widget */
.timer-widget {
    width: 200px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: fit-content;
}

.timer-label {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.timer-boxes {
    display: flex;
    gap: 10px;
    align-items: center;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.box-value {
    background-color: #b388ff;
    color: white;
    font-size: 48px;
    font-weight: 800;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    position: relative;
}

.box-value::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: rgba(255,255,255,0.3);
}

.box-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.timer-separator {
    font-size: 32px;
    font-weight: 800;
    color: #b388ff;
    margin-top: -20px;
}

/* Voter List */
.voter-list-card {
    margin-top: 20px;
}

.voter-count {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.voter-names {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.voter-names li {
    font-size: 18px;
    font-weight: 600;
}

.view-all-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.view-all-btn {
    background-color: var(--primary-purple);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.view-all-btn:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .attendance-container {
        padding: 20px 10px;
    }
    .page-title {
        font-size: 32px;
    }
    .attendance-card {
        padding: 20px;
    }
    .election-times {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        text-align: center;
    }
    .stats-content {
        flex-direction: column;
        align-items: center;
    }
    .timer-widget {
        order: -1;
        margin-bottom: 20px;
    }
    .stat-info {
        font-size: 16px;
    }
    .box-value {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
}
