:root {
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.18);
    --olympic-blue: #0081C8;
    --olympic-yellow: #FCB131;
    --olympic-green: #00A651;
    --olympic-red: #EE334E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 2rem 1rem;
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Animated background blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #0081C8 0%, #00A651 100%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #FCB131 0%, #EE334E 100%);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Glass morphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* Container */
.container {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 960px;
}

.container-admin {
    max-width: 1400px;
    padding: 0 2rem;
}

.container-form {
    max-width: 680px;
}

/* Admin Icon */
.admin-icon {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.admin-icon:hover {
    background: white;
    color: var(--olympic-blue);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card */
.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2.5rem 3.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

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

.header-logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    width: 100%;
    border-radius: 16px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    border: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 12px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--olympic-blue);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-back:hover {
    color: #0066a1;
    gap: 0.75rem;
}

.btn-back:hover svg {
    transform: translateX(-3px);
}

.btn-back svg {
    transition: transform 0.3s ease;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-left: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background: white;
    border-color: var(--olympic-blue);
    box-shadow: 0 0 0 4px rgba(0, 129, 200, 0.1), 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.file-upload-label:hover {
    border-color: var(--olympic-blue);
    background: rgba(0, 129, 200, 0.05);
}

.file-upload-label .icon-wrapper {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
}

.file-upload-label:hover .icon-wrapper {
    background: rgba(0, 129, 200, 0.1);
    color: var(--olympic-blue);
}

.file-upload-label svg {
    flex-shrink: 0;
    color: var(--olympic-blue);
}

.file-upload-label span {
    color: #374151;
    font-weight: 500;
}

.file-upload-label .file-hint {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Status Messages */
.status-message {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-message.error,
.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Admin Dashboard */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.admin-header .subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Search Bar */
.search-bar input:focus {
    outline: none;
    border-color: var(--olympic-blue);
    box-shadow: 0 0 0 4px rgba(0, 129, 200, 0.1);
    background: white;
}

.search-bar input::placeholder {
    color: #9ca3af;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    padding: 0.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow-x: auto;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.5);
}

.filter-tab.active {
    background: white;
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Submissions List */
.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.submission-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.submission-header h3 {
    color: #1a1a2e;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.submission-meta {
    color: #9ca3af;
    font-size: 0.8125rem;
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    animation: badgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    0% { transform: scale(0); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-pending {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #4b5563;
}

.status-in-progress {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.status-resolved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

/* Submission Description */
.submission-description {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-radius: 14px;
}

.submission-description strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--olympic-blue);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submission-description p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Submission Actions */
.submission-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.file-name-display {
    padding: 0.75rem 1rem;
    background: #f3f4f6;
    border-radius: 10px;
    font-size: 0.8125rem;
    color: #6b7280;
    word-break: break-all;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.status-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-status {
    flex: 1;
    min-width: 100px;
    padding: 0.625rem 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-status-pending {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

.btn-status-pending:hover,
.btn-status-pending.active {
    background: #4b5563;
    color: white;
    border-color: #4b5563;
}

.btn-status-progress {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.btn-status-progress:hover,
.btn-status-progress.active {
    background: #1d4ed8;
    color: white;
    border-color: #1d4ed8;
}

.btn-status-resolved {
    background: #d1fae5;
    color: #047857;
    border-color: #a7f3d0;
}

.btn-status-resolved:hover,
.btn-status-resolved.active {
    background: #047857;
    color: white;
    border-color: #047857;
}

/* Loading & Empty States */
.loading,
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    font-weight: 500;
}

/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 129, 200, 0.2);
    border-top-color: var(--olympic-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modal-content h2 {
    color: #1a1a2e;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-content p {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-preview {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

/* DOCX Preview Styles */
.docx-preview {
    font-family: 'Calibri', 'Arial', sans-serif;
}

.docx-preview p {
    margin: 0 0 0.5em 0;
}

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

.docx-preview table td,
.docx-preview table th {
    border: 1px solid #d1d5db;
    padding: 6px 10px;
}

#docx-container {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-close {
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6b7280;
}

.btn-close:hover {
    background: #e5e7eb;
    color: #1a1a2e;
    transform: rotate(90deg);
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
}

.footer-inner {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-divider {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
}

.footer p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-link {
    color: var(--olympic-green);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-link:hover {
    text-decoration: underline;
}

/* Recipients specific styles */
.recipients-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipient-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #f9fafb;
    border-radius: 16px;
    transition: all 0.3s ease;
    gap: 1rem;
    flex-wrap: wrap;
}

.recipient-card:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.recipient-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.recipient-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--olympic-blue) 0%, #0066a1 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.recipient-info h3 {
    margin: 0;
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 600;
}

.recipient-email {
    margin: 0.25rem 0 0 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.recipient-date {
    margin: 0.25rem 0 0 0;
    color: #9ca3af;
    font-size: 0.75rem;
}

.btn-remove {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #fef2f2;
    color: #dc2626;
    border: 2px solid #fecaca;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-remove:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: scale(1.02);
}

/* Notification Toast */
.toast {
    position: fixed;
    top: 6rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    background: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Selection color */
::selection {
    background: rgba(0, 129, 200, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Custom focus outline */
*:focus-visible {
    outline: 2px solid var(--olympic-blue);
    outline-offset: 2px;
}

/* Responsive */
/* ==========================================
   ADMIN DASHBOARD - ENHANCED STYLES
   ========================================== */

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

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

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-all { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); color: #6b7280; }
.stat-icon-pending { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #b45309; }
.stat-icon-progress { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1d4ed8; }
.stat-icon-resolved { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #047857; }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Toolbar */
.toolbar {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.toolbar-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-row-secondary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Search Box */
.search-box {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
    position: relative;
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box .search-icon svg {
    width: 16px;
    height: 16px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 42px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--olympic-blue);
    box-shadow: 0 0 0 3px rgba(0, 129, 200, 0.1);
    background: white;
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f3f4f6;
    border: none;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-box button:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Filter Group */
.filter-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: var(--olympic-blue);
}

.filter-group input[type="date"] {
    max-width: 140px;
}

/* Date Filter with Label */
.date-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-filter label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.date-filter input[type="date"] {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 140px;
}

.date-filter input[type="date"]:focus {
    outline: none;
    border-color: var(--olympic-blue);
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 3px;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn.active {
    background: white;
    color: #1a1a2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-btn:hover:not(.active) {
    color: #374151;
}

/* Sort Group */
.sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-group label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.sort-group select {
    padding: 6px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

/* Icon Button */
.btn-icon {
    width: 36px;
    height: 36px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    border-color: var(--olympic-blue);
    color: var(--olympic-blue);
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.bulk-actions span {
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    margin-right: 0.5rem;
}

.btn-bulk {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-bulk-pending { background: #f3f4f6; color: #4b5563; }
.btn-bulk-pending:hover { background: #4b5563; color: white; }
.btn-bulk-progress { background: #dbeafe; color: #1d4ed8; }
.btn-bulk-progress:hover { background: #1d4ed8; color: white; }
.btn-bulk-resolved { background: #d1fae5; color: #047857; }
.btn-bulk-resolved:hover { background: #047857; color: white; }

/* Results Info */
.results-info {
    margin-left: auto;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Data Table */
.table-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e5e7eb;
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    white-space: nowrap;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.data-table th.sortable:hover {
    color: var(--olympic-blue);
}

.data-table th.sortable i {
    margin-left: 4px;
    opacity: 0.5;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.data-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

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

.data-table tbody tr.selected {
    background: #eff6ff;
}

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

/* Table Columns */
.col-checkbox { width: 40px; text-align: center; }
.col-id { width: 90px; }
.col-status { width: 110px; }
.col-name { min-width: 150px; }
.col-email { min-width: 180px; }
.col-file { min-width: 150px; }
.col-date { width: 120px; }
.col-actions { width: 120px; }

/* ID Badge */
.id-badge {
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    font-weight: 600;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* File Badge */
.file-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Date Display */
.date-primary {
    display: block;
    font-weight: 500;
    color: #374151;
}

.date-secondary {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 4px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: var(--olympic-blue);
    color: white;
}

.btn-action-progress {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1d4ed8;
}

.btn-action-progress:hover {
    background: #1d4ed8;
    color: white;
}

.btn-action-resolved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

.btn-action-resolved:hover {
    background: #047857;
    color: white;
}

/* Empty State */
.empty-cell {
    text-align: center;
    padding: 3rem !important;
}

.empty-state-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #9ca3af;
}

.empty-state-inline i {
    color: #d1d5db;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-controls button {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.pagination-controls button:hover:not(:disabled) {
    border-color: var(--olympic-blue);
    color: var(--olympic-blue);
}

.pagination-controls button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: var(--olympic-blue);
    color: var(--olympic-blue);
}

.page-btn.active {
    background: var(--olympic-blue);
    border-color: var(--olympic-blue);
    color: white;
}

.page-ellipsis {
    padding: 0 8px;
    color: #9ca3af;
}

.per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.per-page label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.per-page select {
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    cursor: pointer;
}

/* Detail Modal */
.modal-detail {
    max-width: 600px;
    width: 100%;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    margin: 0.5rem 0 0;
    font-size: 1.25rem;
    color: #1a1a2e;
}

.modal-id {
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #e5e7eb;
    padding: 4px 10px;
    border-radius: 6px;
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.detail-item span {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.detail-description {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
}

.detail-description label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--olympic-blue);
    margin-bottom: 0.75rem;
}

.detail-description p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-actions .status-buttons {
    display: flex;
    gap: 0.5rem;
}

.detail-actions .file-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .col-email {
        display: none;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .container-admin {
        padding: 0 1rem;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .header-logo {
        max-width: 100px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .admin-header > div:last-child {
        width: 100%;
    }

    .admin-header .btn {
        flex: 1;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 44px;
        height: 44px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .toolbar {
        padding: 1rem;
    }
    
    .toolbar-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-group {
        flex-wrap: wrap;
    }
    
    .filter-group select,
    .filter-group input[type="date"] {
        flex: 1;
        min-width: 120px;
    }
    
    .toolbar-row-secondary {
        flex-wrap: wrap;
    }
    
    .bulk-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .results-info {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 700px;
    }
    
    .col-file {
        display: none;
    }
    
    .pagination {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.25rem 1.5rem;
    }
    
    .detail-actions .status-buttons {
        flex-direction: column;
    }

    .filter-tabs {
        padding: 0.375rem;
    }

    .filter-tab {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .submission-header {
        flex-direction: column;
    }

    .status-buttons {
        flex-direction: column;
    }

    .btn-status {
        min-width: auto;
    }

    .admin-icon {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .recipient-card {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-remove {
        width: 100%;
        justify-content: center;
    }
}

/* Files List - Multiple file upload display */
.files-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(0, 129, 200, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid rgba(0, 129, 200, 0.15);
    border-radius: 10px;
    color: #374151;
}

.file-item i,
.file-item svg {
    color: var(--olympic-blue);
    flex-shrink: 0;
}

.file-item-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.875rem;
    word-break: break-all;
}

.file-item-size {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

.file-item-total {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.file-item-total i,
.file-item-total svg {
    color: #10b981;
}

.file-item-error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-color: rgba(220, 38, 38, 0.3);
}

.file-item-error i,
.file-item-error svg {
    color: #dc2626;
}

.file-item-error .file-item-name,
.file-item-error .file-item-size {
    color: #dc2626;
}

/* Admin files list in table and modal */
.files-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.files-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--olympic-blue);
    background: rgba(0, 129, 200, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Modal files section */
.modal-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.modal-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.modal-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.modal-file-info i,
.modal-file-info svg {
    color: var(--olympic-blue);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.modal-file-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    word-break: break-all;
}

.modal-file-actions {
    display: flex;
    gap: 0.25rem;
}
