:root {
    --innovate-orange: #FF8A00;
    --innovate-dark: #1A1A1A;
    --innovate-gray: #2D2D2D;
    --innovate-light: #FFFFFF;
}

body {
    background-color: var(--innovate-dark);
    color: var(--innovate-light);
}

/* Compact page chrome for the main application screens. */
.navbar.compact-navbar { padding: 0.45rem 0; margin-bottom: 1.25rem !important; }
.compact-navbar .app-logo { width: 48px !important; height: 48px !important; padding: 2px; border-width: 2px; }
.compact-navbar .brand-title { font-size: 1.25rem; }
.compact-navbar .brand-subtitle { font-size: 0.7rem; }
.compact-page-header { padding: 0.8rem 0; margin-bottom: 1rem; }
.compact-page-header .nav-link { padding: 0.55rem 0.75rem; }
.top-navigation { margin-left: auto; }
.top-navigation .nav-link { padding: 0.35rem 0.7rem; margin: 0 0.1rem; font-size: 0.9rem; }

@media (max-width: 576px) {
    .compact-page-header .nav-link { font-size: 0; }
    .compact-page-header .nav-link i { font-size: 1rem; }
    .top-navigation { order: 3; width: 100%; margin: 0.35rem 0 0; }
    .top-navigation .nav-link { font-size: 0; padding: 0.4rem; }
    .top-navigation .nav-link i { font-size: 1rem; }
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--innovate-dark), var(--innovate-gray));
  
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header::before,
.page-header::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--innovate-orange) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.1;
}

.page-header::before {
    top: -150px;
    right: -150px;
}

.page-header::after {
    bottom: -150px;
    left: -150px;
}

.page-header h2 {
    color: var(--innovate-light);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.page-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--innovate-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.page-header h2:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

/* Results Page Styles */
.results-container {
    background: var(--innovate-gray);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 138, 0, 0.2);
    backdrop-filter: blur(10px);
}

.results-container .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.results-container .col-12,
.results-container .col-md-6,
.results-container .col-lg-4 {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-bottom: 1.5rem;
}

.results-header {
    position: relative;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid rgba(255, 138, 0, 0.2);
}

.trophy-icon {
    font-size: 3.5rem;
    color: var(--innovate-orange);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.trophy-icon i {
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.trophy-icon::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--innovate-orange) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.results-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--innovate-light);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.results-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Winner Card Styles */
.winner-card {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8), rgba(26, 26, 26, 0.8));
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--innovate-orange);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.winner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 138, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.winner-card:hover::before {
    transform: translateX(100%);
}

.winner-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.winner-header {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.1), rgba(26, 26, 26, 0.8));
    border-bottom: 2px solid var(--innovate-orange);
    border-bottom: 2px solid rgba(255, 138, 0, 0.2);
}

.winner-trophy {
    font-size: 2.5rem;
    color: var(--innovate-orange);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.trophy-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 138, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

.position-title {
    color: var(--innovate-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.winner-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 138, 0, 0.2);
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.winner-info:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--innovate-orange);
}

.winner-name {
    display: flex;
    align-items: center;
    color: var(--innovate-light);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.winner-name i {
    color: var(--innovate-orange);
    margin-right: 0.5rem;
}

.vote-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vote-badge {
    background: linear-gradient(135deg, var(--innovate-orange), #FF6B00);
    color: var(--innovate-light);
    padding: 0.75rem 1rem;
    border-radius: 30px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.2);
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: var(--innovate-light);
    font-size: 1.25rem;
    font-weight: 600;
}

.results-container {
    background-color: var(--innovate-gray);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.results-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, var(--innovate-orange) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

.results-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.results-container > * {
    position: relative;
    z-index: 1;
}

.position-card {
    background: var(--innovate-gray);
    border: 1px solid var(--innovate-orange);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.position-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.position-card .card-header {
    background: linear-gradient(135deg, var(--innovate-orange), #FF6B00);
    padding: 1rem;
    border: none;
}

.position-card .card-header h5 {
    color: var(--innovate-light);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.position-card .card-header .badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--innovate-light);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.position-card .card-body {
    padding: 1rem;
    background-color: var(--innovate-dark);
}

.candidate-row {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.candidate-row:last-child {
    border-bottom: none;
}

.candidate-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.candidate-name {
    font-weight: 500;
    color: var(--innovate-light);
    font-size: 0.95rem;
}

.vote-count.badge {
    background: var(--innovate-orange) !important;
    color: var(--innovate-light);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(255, 138, 0, 0.2);
}

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

.progress-bar {
    background: linear-gradient(90deg, var(--innovate-orange), #FF6B00);
    box-shadow: 0 0 10px rgba(255, 138, 0, 0.3);
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Live Vote Tally Header */
.live-tally-header {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--innovate-orange);
}

.live-tally-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--innovate-orange);
    animation: pulse 2s infinite;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 138, 0, 0.1);
    border-radius: 20px;
    margin-left: 1rem;
}

.live-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--innovate-orange);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 138, 0, 0.18);
    color: var(--innovate-orange);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.page-header {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95), rgba(34, 34, 34, 0.95));
    border: 1px solid rgba(255, 138, 0, 0.18);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.page-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--innovate-light);
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 138, 0, 0.18);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    min-height: 160px;
}

.summary-card h6 {
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.summary-card .summary-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--innovate-light);
}

.summary-card .summary-note {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 1.25rem 1rem;
    }
}

/* Toast notifications */
.toast {
    background-color: var(--innovate-gray);
    color: var(--innovate-light);
    border: 1px solid var(--innovate-orange);
}

.toast-header {
    background-color: var(--innovate-orange);
    color: var(--innovate-light);
}

/* Navigation Styles */
.nav-pills {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 138, 0, 0.2);
 
}

.nav-pills .nav-link {
    color: var(--innovate-light);
    background-color: transparent;
    border: 1px solid var(--innovate-orange);
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-pills .nav-link:hover {
    background-color: rgba(255, 138, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.2);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--innovate-orange), #FF6B00);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.3);
}

/* Index Page Upload Container */
.upload-container {
    background: linear-gradient(135deg, var(--innovate-gray), rgba(45, 45, 45, 0.8));
    border: 2px dashed var(--innovate-orange);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 138, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.upload-container:hover::before {
    transform: translateX(100%);
}

.upload-container:hover {
    border-color: var(--innovate-light);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.upload-icon {
    font-size: 4rem;
    color: var(--innovate-orange);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.upload-container:hover .upload-icon {
    transform: scale(1.1);
    color: var(--innovate-light);
}

.upload-container h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--innovate-light);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.scan-tips li {
    margin-bottom: 0.45rem;
}

.scan-tips i {
    margin-right: 0.45rem;
}

.camera-scanner-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.camera-scanner-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 55vh;
    background: #000;
    overflow: hidden;
}

.camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.camera-frame-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        linear-gradient(transparent 12%, transparent 12%);
    background-size: 100% 100%, 100% 100%;
}

.camera-frame-guide {
    width: min(82vw, 22rem);
    aspect-ratio: 725 / 1100;
    border: 2px solid rgba(255, 138, 0, 0.95);
    border-radius: 0.75rem;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
    position: relative;
}

.camera-frame-label {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.camera-scanner-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.camera-scanner-footer .btn-lg {
    min-width: 9rem;
}

.scan-preview-tabs .btn {
    min-height: 2.5rem;
}

@media (max-width: 767.98px) {
    .processed-ballots-container {
        margin-top: 0.5rem;
    }

    .processed-ballots-list {
        max-height: none;
    }

    .scan-preview-tabs .btn {
        font-size: 0.85rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Processed Ballots List Styles */
.processed-ballots-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.processed-ballots-list::-webkit-scrollbar {
    width: 6px;
}

.processed-ballots-list::-webkit-scrollbar-track {
    background: var(--innovate-gray);
    border-radius: 3px;
}

.processed-ballots-list::-webkit-scrollbar-thumb {
    background: var(--innovate-orange);
    border-radius: 3px;
}

.ballot-item {
    background: var(--innovate-gray);
    border-left: 3px solid var(--innovate-orange);
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.ballot-item:hover {
    background: rgba(255, 138, 0, 0.1);
    transform: translateX(2px);
}

.ballot-file {
    font-weight: 500;
    color: var(--innovate-light);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ballot-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Make the processed ballots container narrower */
.processed-ballots-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Utility classes */
.text-orange {
    color: var(--innovate-orange) !important;
}

.bg-orange {
    background-color: var(--innovate-orange) !important;
}

/* Ballot Results Modal */
.ballot-results .position-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.ballot-results .position-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ballot-results .position-card .card-body {
    padding: 1rem;
}

.ballot-results .position-card li {
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.ballot-results .position-card li:hover {
    background: rgba(255, 255, 255, 0.05);
}

.ballot-results .text-success {
    color: #28a745 !important;
}

.ballot-results .text-warning {
    color: #ffc107 !important;
}

.ballot-results .text-muted {
    color: #6c757d !important;
}

/* Modal Animations */
.modal.fade .modal-dialog {
    transition: transform 0.2s ease-out;
}

.modal.fade .modal-dialog {
    transform: scale(0.95);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Modal Scrollbar */
.modal-body {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

#endVotingBtn, #resetVotingBtn, #reopenVotingBtn {
    opacity: 1;
    transition: all 0.3s ease;
}

#reopenVotingBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.ballot-position {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: background-color 0.2s ease;
}

.ballot-position:last-child {
    border-bottom: none;
}

.ballot-position:hover {
    background-color: rgba(0,0,0,0.02);
}

.position-name {
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 1rem;
}

.voted-candidate {
    padding-left: 10px;
    font-size: 0.95rem;
}

.voted-candidate.text-success {
    color: #28a745;
}

.voted-candidate.text-muted {
    color: #6c757d;
}

.ballot-results {
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.ballot-results::-webkit-scrollbar {
    width: 6px;
}

.ballot-results::-webkit-scrollbar-track {
    background: transparent;
}

.ballot-results::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--innovate-orange), #FF6B00);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 138, 0, 0.3);
}

.btn-outline-light {
    border: 2px solid var(--innovate-light);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--innovate-light);
    color: var(--innovate-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.winner-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--innovate-orange);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

.winner-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.winner-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--innovate-orange), #FF6B00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--innovate-light);
}

.position-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 1s ease-in-out;
}

.badge.bg-orange {
    background-color: var(--innovate-orange) !important;
    color: var(--innovate-light);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Add a subtle hover effect to winner cards */
.winner-card:hover .winner-avatar {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.winner-card:hover .progress-bar {
    background-image: linear-gradient(45deg, 
        rgba(255,255,255,.15) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,.15) 50%, 
        rgba(255,255,255,.15) 75%, 
        transparent 75%, 
        transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

.row-cols-lg-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 992px) {
    .row-cols-lg-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .row-cols-lg-3 {
        grid-template-columns: 1fr;
    }
}

#resultsContent .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0;
}

@media (min-width: 992px) {
    #resultsContent .row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    #resultsContent .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Remove default Bootstrap column padding in the grid */
#resultsContent .row > [class*="col-"] {
    padding: 0;
    width: 100%;
}

/* Ensure consistent card heights */
.winner-card {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.winner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Improved spacing between cards */
.g-4 > * {
    margin: 0;
}

.app-footer {
    margin-top: 2.5rem;
    padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(26, 26, 26, 0), rgba(26, 26, 26, 0.85));
    border-top: 1px solid rgba(255, 138, 0, 0.25);
    text-align: center;
}

.app-footer-copyright {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.app-footer-developed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.92rem;
}

.app-footer-label {
    color: rgba(255, 255, 255, 0.55);
}

.app-footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 138, 0, 0.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.app-footer-brand {
    font-weight: 600;
    color: var(--innovate-light);
    letter-spacing: 0.02em;
    
}
.app-footer-brand-link {
    text-decoration: none;
}
.app-footer-brand-link:hover {
    text-decoration: none;
}
body.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #171717;
}

.auth-page-body {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 1.5rem 0;
}

.auth-page .app-footer {
    width: 100%;
    margin-top: 0;
    background: #121212;
}
