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

body {
    font-family: 'Montserrat', 'Segoe UI', 'Tahoma', 'Geneva', 'Verdana', sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.logo-placeholder {
    text-align: center;
    padding: 10px;
    background: #303c4a;
    border-bottom: 2px solid #e9ecef;
}

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

.intro-text {
    padding: 30px 40px;
    text-align: center;
    background: #f8f9fa;
}

.intro-text h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 300;
}

.intro-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

form {
    padding: 40px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

input[type="text"]:focus, input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]:invalid {
    border-color: #dc3545;
}

input[type="text"]:valid {
    border-color: #28a745;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.875rem;
}

.submit-btn {
    width: 50%;
    padding: 15px;
    background: #eb4045;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto;
    display: block;
}
.admin-submit-btn {
    width: 100%;
    padding: 15px;
    background: #eb4045;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 auto;
    display: block;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Admin Styles */
.admin-container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.admin-header {
    background: #eb4045;
    color: white;
    padding: 30px 40px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.admin-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.admin-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.admin-header-right p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.logout-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.submissions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.submissions-table th,
.submissions-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.submissions-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
}

.submissions-table tr:hover {
    background: #f8f9fa;
}

.download-link {
    display: inline-block;
    padding: 8px 16px;
    background: #eb4045;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: #ac2a2f;
    transform: translateY(-1px);
}

.table-container {
    overflow-x: auto;
    padding: 20px 40px 40px;
}

.login-form {
    max-width: 600px;
    margin: 100px auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    line-height: 2rem;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .container, .admin-container {
        margin: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .admin-header-right {
        align-items: center;
    }
    
    form, .table-container {
        padding: 20px;
    }
    
    .intro-text {
        padding: 20px;
    }
    
    .intro-text h1 {
        font-size: 1.5rem;
    }
    
    .submissions-table {
        font-size: 0.875rem;
    }
    
    .submissions-table th,
    .submissions-table td {
        padding: 10px;
    }
}