* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f6f8fa;
    min-height: 100vh;
    color: #24292f;
}

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #d0d7de;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.navbar-title {
    font-size: 16px;
    font-weight: 600;
    color: #24292f;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 6px 12px;
    color: #24292f;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-link:hover {
    background: #f6f8fa;
}

.nav-link.active {
    background: #f6f8fa;
    font-weight: 500;
}

.navbar-user {
    color: #57606a;
    font-size: 14px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #d0d7de;
}

.nav-logout {
    color: #cf222e;
}

.nav-logout:hover {
    background: #ffebe9;
}

.hidden {
    display: none !important;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
}

.loading-content {
    text-align: center;
}

.logo-container {
    margin-bottom: 24px;
}

.logo-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.loading-text {
    color: #24292f;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #0969da;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

#main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#main-content.fade-in {
    opacity: 1;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

header h1 {
    color: #24292f;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: #57606a;
    font-size: 16px;
}

main {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    border: 1px solid #d0d7de;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #24292f;
    font-size: 14px;
}

.required {
    color: #cf222e;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.file-upload-wrapper {
    position: relative;
    border: 1px dashed #d0d7de;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #f6f8fa;
}

.file-upload-wrapper:hover,
.file-upload-wrapper.drag-over {
    border-color: #0969da;
    background: #ffffff;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-upload-label svg {
    fill: #57606a;
}

.file-upload-label span:first-of-type {
    font-size: 14px;
    color: #24292f;
}

.file-hint {
    font-size: 12px;
    color: #57606a;
}

.file-preview {
    position: relative;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
}

.btn-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #cf222e;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-remove:hover {
    background: #a40e26;
}

.form-actions {
    margin-top: 24px;
}

.btn-submit {
    width: 100%;
    padding: 10px 16px;
    background: #1f883d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-submit:hover {
    background: #1a7f37;
}

.btn-submit:disabled {
    background: #6e7781;
    cursor: not-allowed;
}

.upload-progress {
    margin-top: 24px;
    padding: 20px;
    background: #f6f8fa;
    border-radius: 8px;
    border: 1px solid #d0d7de;
}

.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #d0d7de;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1f883d 0%, #2ea043 100%);
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-info span {
    font-size: 14px;
    font-weight: 500;
    color: #24292f;
}

#progress-percent {
    color: #1f883d;
}

#progress-speed {
    color: #0969da;
}

.progress-detail {
    text-align: center;
    font-size: 12px;
    color: #57606a;
}

.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.toast-overlay.show {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.toast-modal {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 360px;
    width: 90%;
}

.toast-overlay.show .toast-modal.show {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.toast-icon {
    margin-bottom: 16px;
}

.toast-icon.success svg {
    fill: #1f883d;
}

.toast-icon.error svg {
    fill: #cf222e;
}

.toast-title {
    font-size: 20px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 8px;
}

.toast-message {
    font-size: 14px;
    color: #57606a;
    margin-bottom: 24px;
    line-height: 1.5;
}

.toast-btn {
    padding: 10px 32px;
    background: #1f883d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-btn:hover {
    background: #1a7f37;
    transform: scale(1.02);
}

.toast-btn:active {
    transform: scale(0.98);
}

.vote-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.vote-card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.vote-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.vote-card-header {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
}

.vote-avatar {
    flex-shrink: 0;
}

.vote-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vote-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vote-name {
    font-size: 16px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 4px;
}

.vote-time {
    font-size: 12px;
    color: #57606a;
}

.vote-card-body {
    padding: 20px;
}

.vote-form .form-group {
    margin-bottom: 16px;
}

.vote-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #24292f;
    font-size: 14px;
}

.token-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #57606a;
}

.btn-vote {
    width: 100%;
    padding: 10px 16px;
    background: #0969da;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-vote:hover {
    background: #0860ca;
}

.btn-vote:disabled {
    background: #6e7781;
    cursor: not-allowed;
}

.vote-table-container {
    margin-top: 16px;
    overflow-x: auto;
}

.vote-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.vote-table thead {
    background: #f6f8fa;
}

.vote-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #24292f;
    border-bottom: 1px solid #d0d7de;
}

.vote-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #d0d7de;
    color: #24292f;
}

.vote-table tbody tr:hover {
    background: #f6f8fa;
}

.vote-table tbody tr:last-child td {
    border-bottom: none;
}

.vote-thumbnail {
    width: 60px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #d0d7de;
}

.btn-vote-table {
    display: inline-block;
    padding: 6px 12px;
    background: #0969da;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.btn-vote-table:hover {
    background: #0860ca;
}

.btn-vote-table:active {
    transform: scale(0.95);
}

.vote-table td:last-child {
    white-space: nowrap;
    min-width: 180px;
}

.btn-view-image-link {
    display: inline-block;
    padding: 6px 12px;
    background: #6e7781;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 6px;
    line-height: 1.5;
}

.btn-view-image-link:hover {
    background: #57606a;
    color: white;
}

.btn-view-image-link:active {
    transform: scale(0.95);
}

.vote-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.vote-modal-overlay.show {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.vote-modal {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vote-modal-overlay.show .vote-modal {
    transform: scale(1);
    opacity: 1;
}

.vote-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #d0d7de;
}

.vote-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #24292f;
}

.vote-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #57606a;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.vote-modal-close:hover {
    background: #f6f8fa;
}

.vote-modal-body {
    padding: 20px;
}

.vote-modal-info {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vote-modal-label {
    font-size: 14px;
    color: #57606a;
    font-weight: 500;
}

.vote-modal-target {
    font-size: 14px;
    color: #0969da;
    font-weight: 600;
}

.btn-vote-submit {
    width: 100%;
    padding: 10px 16px;
    background: #0969da;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-vote-submit:hover {
    background: #0860ca;
}

.btn-vote-submit:disabled {
    background: #6e7781;
    cursor: not-allowed;
}

.token-modal {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.token-modal-content {
    text-align: center;
}

.token-modal h3 {
    margin-bottom: 20px;
    color: #24292f;
    font-size: 18px;
}

.token-display {
    background: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.token-label {
    font-size: 12px;
    color: #57606a;
    margin-bottom: 8px;
}

.token-value {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #0969da;
    word-break: break-all;
    padding: 8px;
    background: #ffffff;
    border-radius: 4px;
}

.btn-copy {
    padding: 8px 24px;
    background: #1f883d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-copy:hover {
    background: #1a7f37;
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.toast-notification .toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.toast-notification.success .toast-icon {
    background: #1f883d;
    color: white;
}

.toast-notification.error .toast-icon {
    background: #cf222e;
    color: white;
}

.toast-notification .toast-content {
    flex: 1;
}

.toast-notification .toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #24292f;
    margin-bottom: 4px;
}

.toast-notification .toast-message {
    font-size: 12px;
    color: #57606a;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

footer {
    text-align: center;
    margin-top: 32px;
    color: #57606a;
    font-size: 12px;
}

.success-message {
    text-align: center;
    padding: 48px 32px;
}

.success-icon {
    margin-bottom: 16px;
}

.success-icon svg {
    fill: #1f883d;
}

.success-message h2 {
    color: #1f883d;
    margin-bottom: 8px;
    font-size: 20px;
}

.success-message p {
    color: #57606a;
    font-size: 14px;
}

.login-container {
    max-width: 360px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    border: 1px solid #d0d7de;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 20px;
    color: #24292f;
    margin-bottom: 4px;
}

.error-message {
    background: #ffebe9;
    color: #cf222e;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ffa8a8;
}

.login-footer {
    text-align: center;
    margin-top: 16px;
}

.login-footer a {
    color: #0969da;
    text-decoration: none;
    font-size: 14px;
}

.login-footer a:hover {
    text-decoration: underline;
}

.admin-container {
    min-height: 100vh;
    background: #f6f8fa;
    padding-top: 0;
}

.admin-tabs {
    display: flex;
    gap: 4px;
    background: #eaeef2;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.admin-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #57606a;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #24292f;
}

.admin-tab.active {
    background: #ffffff;
    color: #24292f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-tab svg {
    width: 16px;
    height: 16px;
}

.admin-main {
    padding: 24px 32px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    padding: 6px 12px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    width: 220px;
    background: #ffffff;
}

.search-form input:focus {
    outline: none;
    border-color: #0969da;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.btn-search {
    padding: 6px 12px;
    background: #0969da;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-search:hover {
    background: #0860ca;
}

.btn-reset {
    padding: 6px 12px;
    background: #6e7781;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-reset:hover {
    background: #57606a;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-export {
    padding: 6px 12px;
    background: #0969da;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-export:hover {
    background: #0860ca;
}

.total-count {
    color: #57606a;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 48px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #d0d7de;
}

.empty-state svg {
    fill: #d0d7de;
}

.empty-state p {
    margin-top: 12px;
    color: #57606a;
    font-size: 14px;
}

.table-container {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d0d7de;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #d0d7de;
}

.data-table th {
    background: #f6f8fa;
    font-weight: 600;
    color: #24292f;
    font-size: 14px;
}

.data-table td {
    font-size: 14px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #f6f8fa;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: 1px solid #d0d7de;
}

.thumbnail:hover {
    opacity: 0.8;
}

.btn-view {
    padding: 4px 10px;
    background: #0969da;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 6px;
    transition: background 0.2s ease;
}

.btn-view:hover {
    background: #0860ca;
}

.btn-delete {
    padding: 4px 10px;
    background: #cf222e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    transition: background 0.2s ease;
}

.btn-delete:hover {
    background: #a40e26;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
}

.page-link {
    padding: 6px 12px;
    background: #ffffff;
    color: #24292f;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    border: 1px solid #d0d7de;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #f6f8fa;
    border-color: #0969da;
}

.page-info {
    color: #57606a;
    font-size: 14px;
}

.admin-footer {
    text-align: center;
    padding: 16px;
    color: #57606a;
    font-size: 12px;
    border-top: 1px solid #d0d7de;
    background: #ffffff;
}

.vote-charts-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.section-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #24292f;
    padding-bottom: 12px;
    border-bottom: 1px solid #d0d7de;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

.chart-card {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #d0d7de;
}

.chart-card h4 {
    margin: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #57606a;
    text-align: center;
}

.vote-stats-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vote-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.vote-stat-card {
    background: #f6f8fa;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #d0d7de;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.vote-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.vote-stat-card.rank-1 {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    border-color: #f0c14b;
}

.vote-stat-card.rank-2 {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-color: #b0b0b0;
}

.vote-stat-card.rank-3 {
    background: linear-gradient(135deg, #fff5eb 0%, #ffffff 100%);
    border-color: #cd7f32;
}

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0969da;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.vote-stat-card.rank-1 .rank-badge {
    background: #f0c14b;
    color: #24292f;
}

.vote-stat-card.rank-2 .rank-badge {
    background: #b0b0b0;
    color: #24292f;
}

.vote-stat-card.rank-3 .rank-badge {
    background: #cd7f32;
    color: white;
}

.vote-stat-name {
    font-size: 16px;
    color: #24292f;
    margin-bottom: 8px;
    font-weight: 600;
    padding-right: 50px;
}

.vote-stat-count {
    font-size: 28px;
    font-weight: 700;
    color: #0969da;
    margin-bottom: 12px;
}

.vote-progress {
    height: 6px;
    background: #d0d7de;
    border-radius: 3px;
    overflow: hidden;
}

.vote-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0969da 0%, #54aeff 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.vote-stat-card.rank-1 .vote-progress-bar {
    background: linear-gradient(90deg, #f0c14b 0%, #ffd700 100%);
}

.vote-stat-card.rank-2 .vote-progress-bar {
    background: linear-gradient(90deg, #b0b0b0 0%, #d0d0d0 100%);
}

.vote-stat-card.rank-3 .vote-progress-bar {
    background: linear-gradient(90deg, #cd7f32 0%, #daa06d 100%);
}

.empty-state-inline {
    text-align: center;
    padding: 40px;
    color: #57606a;
    font-size: 14px;
}

.data-table code {
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: #57606a;
    font-family: 'Courier New', monospace;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    background: #ffffff;
}

.modal-close {
    position: absolute;
    top: -36px;
    right: 0;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #d0d7de;
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 16px;
        justify-content: center;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .navbar-brand {
        justify-content: center;
    }
    
    .navbar-title {
        font-size: 15px;
    }
    
    .navbar-logo {
        width: 28px;
        height: 28px;
    }
    
    .toast-modal {
        padding: 24px;
        margin: 16px;
    }
    
    .container {
        padding: 20px 16px;
    }
    
    main {
        padding: 24px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .admin-main {
        padding: 16px;
    }
    
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .toolbar-actions {
        justify-content: space-between;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .vote-table {
        font-size: 13px;
    }
    
    .vote-table th,
    .vote-table td {
        padding: 10px 12px;
    }
    
    .vote-table th:nth-child(2),
    .vote-table td:nth-child(2) {
        display: none;
    }
    
    .vote-modal {
        width: 95%;
        margin: 16px;
    }
    
    .vote-modal-body {
        padding: 16px;
    }
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(0px);
}

.image-modal.show {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.show .image-modal-content {
    transform: scale(1);
    opacity: 1;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.image-modal-close:hover {
    color: #d0d7de;
    background: rgba(255, 255, 255, 0.1);
}

