@import url('https://fonts.googleapis.com/css2?family=Arial:wght@400;700&display=swap');

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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 200px;
    background-image: url('neury.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 600px;
}

.login-panel, .upload-panel, .admin-panel {
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 2px solid #999;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #bbb;
}

.panel-header h2 {
    color: #333;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 24px;
}

.lock-icon, .admin-icon {
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.text-input, .select-input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #999;
    border-radius: 10px;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    font-size: 16px;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.text-input:focus, .select-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(74, 144, 226, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(145deg, #5cb85c, #449d44);
    color: white;
    border: 3px solid #398439;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 7px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.upload-area {
    border: 3px dashed #999;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: #4a90e2;
    background: linear-gradient(145deg, #f0f7ff, #e0f0ff);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

#fileInput {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #999;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5cb85c, #449d44);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.error-message, .status-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.error-message {
    background: linear-gradient(145deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.status-message {
    background: linear-gradient(145deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #c3e6cb;
}

.gallery {
    margin-top: 30px;
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 2px solid #999;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid #999;
    transition: all 0.3s ease;
}

.image-item:hover {
    transform: scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.admin-section {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(145deg, #e8e8e8, #d0d0d0);
    border-radius: 15px;
    border: 2px solid #bbb;
}

.admin-section h3 {
    color: #333;
    margin-bottom: 15px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.generated-code {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(145deg, #d4edda, #c3e6cb);
    border: 2px solid #b1dfbb;
    border-radius: 10px;
    font-family: monospace;
    font-size: 18px;
    text-align: center;
    color: #155724;
}

.codes-list {
    max-height: 300px;
    overflow-y: auto;
    background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
    border-radius: 10px;
    padding: 15px;
    border: 2px solid #ccc;
}

.code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 8px;
    border: 1px solid #ddd;
}

.code-text {
    font-family: monospace;
    font-size: 16px;
    color: #333;
}

.code-type {
    font-size: 12px;
    padding: 4px 8px;
    background: #4a90e2;
    color: white;
    border-radius: 4px;
}

.close-btn {
    background: linear-gradient(145deg, #d9534f, #c9302c);
    color: white;
    border: 2px solid #ac2925;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}