/* dashboard.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.auth-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-container h2 {
    margin-bottom: 20px;
    color: #333;
}

.auth-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-container input:focus {
    outline: none;
    border-color: #667eea;
}

.auth-container button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.auth-container button:hover:not(:disabled) {
    background: #5a67d8;
}

.auth-container button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    display: none;
    color: #dc3545;
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.stat-card h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    word-break: break-word;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.stat-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
}

.stat-value {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.stat-value.highlight {
    color: #667eea;
    font-size: 1.2rem;
}

.submissions-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 90%;
    max-height: 85vh;
    margin: 30px auto;
    padding: 30px;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

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

.submission-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.submission-item:last-child {
    margin-bottom: 0;
}

.submission-header {
    margin-bottom: 15px;
    line-height: 1.6;
}

.submission-data {
    margin-top: 15px;
}

.submission-item pre {
    background: white;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-top: 10px;
    border: 1px solid #dee2e6;
    font-size: 13px;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    color: white;
    margin-top: 100px;
}

.empty-state h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.refresh-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    transform: rotate(180deg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.last-updated {
    text-align: center;
    color: white;
    margin-bottom: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 20px auto;
        padding:
