* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

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

h2 {
    margin-top: 40px;
    border-bottom: 2px solid #4a4a6a;
    padding-bottom: 10px;
}

/* Config */
.config {
    background: #2a2a4a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.config.hidden {
    display: none;
}

.config input {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: #1a1a2e;
    color: #eee;
    font-size: 1rem;
}

.config button, #config-btn {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.config button:hover, #config-btn:hover {
    background: #5b4cdb;
}

#config-btn, #upload-btn {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

#config-btn {
    right: 20px;
}

#upload-btn {
    right: 100px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#upload-btn:hover {
    background: #5b4cdb;
}

/* Status */
.status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.status.info {
    display: block;
    background: #3498db;
}

.status.success {
    display: block;
    background: #27ae60;
}

.status.error {
    display: block;
    background: #e74c3c;
}

.status a {
    color: white;
    font-weight: bold;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Responsive */
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}