:root {
    --primary-color: #010b5d;
    --accent-color: #5cff3e;
    --light-bg: #f8f9fa;
    --border-radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

/* Basic scrollbar styling */
::-webkit-scrollbar {
    width: 6px; /* width of vertical scrollbar */
    height: 6px; /* height of horizontal scrollbar */
}

/* The track (background) of the scrollbar */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* The draggable scrolling handle */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* The buttons on the scrollbar (arrows pointing upwards and downwards) */
::-webkit-scrollbar-button {
    display: none; /* hide the arrow buttons */
}

/* Corner where two scrollbars meet */
::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

.app-header {
    height: 100px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.app-logo {
    height: 100%;
    transition: transform 0.3s ease;
}

    .app-logo:hover {
        transform: scale(1.05);
    }

.content-container {
    height: calc(100vh - 200px);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 20px;
}

.footer {
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Improve Syncfusion controls appearance */
.e-input-group, .e-input-group.e-control-wrapper {
    border-radius: var(--border-radius);
    border: 1px solid #f1f1f1;
}

.e-input-group:hover:not(.e-disabled):not(.e-float-icon-left) {
    border-color: var(--primary-color);
}

.e-input-group.e-input-focus:hover:not(.e-disabled):not(.e-float-icon-left),
.e-input-group.e-input-focus:not(.e-disabled):not(.e-float-icon-left) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(1, 11, 93, 0.25);
}

/* Override button styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #00084a;
        border-color: #00084a;
    }

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .content-container {
        padding: 1rem;
    }
}

/* ===== APP SPINNER OVERLAY ===== */
.app-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

.app-spinner-overlay.visible {
    display: flex;
}

.app-spinner-circle {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: app-spin 1s linear infinite;
}

@keyframes app-spin {
    to { transform: rotate(360deg); }
}

/* ===== NATIVE SELECT STYLING ===== */
.native-select {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.native-select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(1, 11, 93, 0.25);
}

.native-select:disabled {
    background-color: #e9ecef;
}

/* ===== NATIVE TABLE STYLING ===== */
.vote-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.vote-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f9fafb;
}

.vote-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    text-align: left;
    background: #f9fafb;
}

.vote-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.vote-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.vote-table tbody tr:hover {
    background-color: #f5f9ff;
}

.vote-table .vote-input-cell {
    width: 120px;
    text-align: center;
}

.vote-table .comment-cell {
    min-width: 200px;
}
