:root {
    --primary: #000000;
    --secondary: #666666;
    --accent: #f5f5f5;
    --background: #ffffff;
    --border: #e5e5e5;
    --success: #10b981;
    --error: #ef4444;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background);
    color: var(--primary);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.header p {
    color: var(--secondary);
    font-weight: 400;
    font-size: 1rem;
}

.form-container {
    max-width: 400px;
    margin: 0 auto 3rem auto;
}

.form-section {
    background: var(--accent);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.form-section h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
}

.error-message {
    color: var(--error);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--background);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:read-only,
.form-group textarea:disabled {
    background-color: var(--accent);
    cursor: default;
    color: var(--secondary);
}

.btn {
    background: var(--primary);
    color: var(--background);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: var(--secondary);
    margin-bottom: 1rem;
}

.btn-secondary:hover {
    background: var(--primary);
}

.mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.mode-btn {
    flex: 1;
    padding: 0.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.mode-btn.active {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
}

.gallery-section {
    margin-top: 3rem;
}

.gallery-section h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}

.gallery-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.gallery-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    animation: autoRotate 30s linear infinite;
}

.gallery-carousel:hover {
    animation-play-state: paused;
}

.gallery-item {
    min-width: 200px;
    background: var(--background);
    border-right: 1px solid var(--border);
}

.gallery-item:last-child {
    border-right: none;
}

.gallery-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item .filename {
    padding: 0.75rem;
    font-size: 0.75rem;
    color: var(--secondary);
    word-break: break-all;
    background: var(--accent);
    text-align: center;
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-btn {
    background: var(--accent);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    color: var(--primary);
}

.gallery-btn:hover {
    background: var(--primary);
    color: var(--background);
    transform: scale(1.1);
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background: var(--primary);
}

@keyframes autoRotate {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.empty-gallery {
    text-align: center;
    padding: 3rem;
    color: var(--secondary);
    font-style: italic;
}

.empty-state {
    text-align: center;
    color: var(--secondary);
    font-style: italic;
    padding: 2rem;
}

.footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.75rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}

