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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

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

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.access-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.access-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-secondary {
    background: #2196F3;
    color: white;
}

.btn-admin {
    background: #FF5722;
    color: white;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.features {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.feature {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Form Styles */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.form-container h2 {
    color: #333;
    margin-bottom: 10px;
}

.form-container p {
    color: #666;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.error {
    color: #f44336;
    font-size: 0.9rem;
    margin-top: 5px;
}

.success {
    color: #4CAF50;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Dashboard Styles */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    min-height: 100vh;
}

.sidebar {
    background: #2c3e50;
    color: white;
    padding: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.sidebar a:hover {
    background: #34495e;
}

.main-content {
    padding: 20px;
    background: white;
}

.main-content h1, .main-content h2, .main-content h3, .main-content h4, .main-content h5 {
    color: #333;
}

.main-content p {
    color: #666;
}

/* Status Indicators */
.status-complete {
    color: #4CAF50;
    font-weight: bold;
}

.status-pending {
    color: #FF9800;
    font-weight: bold;
}

.status-missing {
    color: #f44336;
    font-weight: bold;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .sidebar {
        order: 2;
        padding: 15px;
    }
    
    .sidebar h3 {
        font-size: 1.2rem;
    }
    
    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .sidebar li {
        flex: 1;
        min-width: 120px;
    }
    
    .sidebar a {
        font-size: 0.8rem;
        padding: 8px;
        text-align: center;
    }
    
    .main-content {
        padding: 15px;
        order: 1;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input, .form-group select {
        font-size: 16px;
        padding: 12px;
    }
    
    section {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .upload-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .upload-card {
        padding: 15px !important;
    }
    
    .feature-list {
        flex-direction: column;
        align-items: center;
    }
    
    /* Status grid mobile */
    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Form grids mobile */
    div[style*="grid-template-columns: repeat(auto-fit, minmax"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Mobile floating helper */
    #floatingHelper {
        bottom: 15px !important;
        right: 15px !important;
        font-size: 0.8rem !important;
        padding: 10px 12px !important;
        max-width: 200px !important;
    }
    
    #helperTooltip {
        width: 220px !important;
        bottom: 50px !important;
        right: -10px !important;
    }
    
    .dashboard {
        width: 100%;
        overflow-x: hidden;
    }
    
    .main-content {
        width: 100%;
        overflow-x: hidden;
    }
    
    table {
        width: 100% !important;
        table-layout: fixed;
    }
    
    input, select, textarea {
        max-width: 100%;
        width: 100%;
    }
}

/* File Upload */
.file-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.file-upload:hover {
    border-color: #4CAF50;
}

.file-upload.dragover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.warning {
    background: #FF9800;
}

/* Popup Notification Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

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

.notification-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.success-popup {
    border-top: 5px solid #4CAF50;
}

.error-popup {
    border-top: 5px solid #f44336;
}

.notification-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.notification-message {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #333;
}

.notification-close {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.error-popup .notification-close {
    background-color: #f44336;
}

.notification-close:hover {
    opacity: 0.9;
}