/* Shopee-like color scheme */
:root {
    --shopee-orange: #ff5722;
    --shopee-orange-light: #ff7043;
    --shopee-orange-dark: #e64a19;
    --shopee-pink: #ff427f;
    --shopee-blue: #2196f3;
    --shopee-green: #4caf50;
    --shopee-yellow: #ffc107;
    --shopee-purple: #9c27b0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    padding-bottom: 20px;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.card {
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--shopee-orange);
    border-color: var(--shopee-orange);
}

.btn-primary:hover {
    background-color: var(--shopee-orange-dark);
    border-color: var(--shopee-orange-dark);
}

.btn-success {
    background-color: var(--shopee-green);
    border-color: var(--shopee-green);
}

.btn-success:hover {
    background-color: #3d8b40;
    border-color: #3d8b40;
}

.btn-info {
    background-color: var(--shopee-blue);
    border-color: var(--shopee-blue);
}

.btn-info:hover {
    background-color: #0b7dda;
    border-color: #0b7dda;
}

.candidate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-bottom: 15px;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.candidate-card.selected {
    border: 3px solid var(--shopee-orange);
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.3);
}

.candidate-photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 auto;
}

.candidate-photo-sm {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vote-progress {
    height: 10px;
    border-radius: 5px;
}

.stat-card {
    border-radius: 10px;
    margin-bottom: 15px;
}

.stat-card i {
    opacity: 0.7;
}

.table th {
    background-color: #f8f9fa;
}

/* Button styles for admin panel */
.btn-outline-primary {
    color: var(--shopee-orange);
    border-color: var(--shopee-orange);
    border-width: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-outline-primary:hover {
    background-color: var(--shopee-orange);
    border-color: var(--shopee-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-outline-danger {
    color: var(--shopee-pink);
    border-color: var(--shopee-pink);
    border-width: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-outline-danger:hover {
    background-color: var(--shopee-pink);
    border-color: var(--shopee-pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-outline-primary:active,
.btn-outline-danger:active {
    transform: translateY(0);
}

/* Modal styles */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    background-color: var(--shopee-orange);
    color: white;
    border-radius: 8px 8px 0 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .candidate-photo {
        width: 100px;
        height: 100px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .candidate-card .card-body {
        padding: 10px;
    }
    
    .d-flex.justify-content-center {
        flex-direction: column;
        align-items: center;
    }
    
    .ms-3 {
        margin-left: 0 !important;
        margin-top: 15px;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    .small {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

@media (max-width: 576px) {
    .candidate-photo {
        width: 80px;
        height: 80px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    .small {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        width: 30px;
    }
}

/* Animation for vote confirmation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}