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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-box h1 {
    color: #764ba2;
    margin-bottom: 5px;
    font-size: 24px;
}

.login-box h2 {
    color: #555;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 500;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #764ba2;
    outline: none;
}

.btn {
    display: inline-block;
    background: #764ba2;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

header h1 {
    color: #764ba2;
    font-size: 28px;
}

.logout-btn {
    background: #f44336;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #d32f2f;
}

.upload-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.upload-section h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
}

.upload-form {
    display: flex;
    flex-direction: column;
}

.file-upload {
    margin-bottom: 20px;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: border 0.3s, background 0.3s;
}

.file-label:hover {
    border-color: #764ba2;
    background: #f9f9f9;
}

.file-label i {
    font-size: 48px;
    color: #764ba2;
    margin-bottom: 15px;
}

.file-label span {
    color: #666;
    text-align: center;
}

#file {
    display: none;
}

#selected-file {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #764ba2;
}

.file-info-box {
    font-size: 14px;
    color: #555;
}

.file-info-box strong {
    color: #333;
}

.upload-btn {
    align-self: flex-end;
}

.files-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.files-section h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
}

.no-files {
    color: #888;
    text-align: center;
    padding: 30px 0;
}

.file-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.file-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.file-icon {
    margin-right: 15px;
}

.file-icon i {
    font-size: 32px;
    color: #764ba2;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    margin-bottom: 5px;
    word-break: break-all;
    color: #333;
}

.file-meta {
    display: flex;
    gap: 15px;
}

.file-meta span {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.view-btn {
    background: #4caf50;
    padding: 8px 12px;
    font-size: 14px;
}

.view-btn:hover {
    background: #388e3c;
}

.download-btn {
    background: #2196f3;
    padding: 8px 12px;
    font-size: 14px;
}

.download-btn:hover {
    background: #1976d2;
}

@media (max-width: 768px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .file-actions {
        margin-top: 10px;
        width: 100%;
        justify-content: flex-end;
    }
}