/* OpenHandle Custom Styles */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --dark-color: #212529;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.proposal-card {
    transition: box-shadow 0.3s ease;
}

.proposal-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.vote-btn {
    min-width: 80px;
}

.countdown {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.toast {
    min-width: 250px;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card-header h5 {
    margin-bottom: 0;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .proposal-card .card-body {
        flex-direction: column;
    }
    
    .proposal-card .ms-3 {
        margin-left: 0 !important;
        margin-top: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .container.my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .admin-actions {
        flex-direction: column;
    }

    .admin-actions .btn {
        width: 100%;
    }
}

/* Form styles */
.form-label {
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Admin panel styles */
.admin-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Badge customization */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Alert customization */
.alert {
    border-left: 4px solid;
}

.alert-info {
    border-left-color: var(--primary-color);
}

.alert-success {
    border-left-color: var(--success-color);
}

.alert-danger, .alert-warning {
    border-left-color: var(--danger-color);
}

/* Footer */
footer {
    margin-top: auto;
}
