.upload-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem;
    background: var(--primary-color);
    border-radius: 20px;
    box-shadow: var(--inner-shadow);
}

.upload-header {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-header h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.upload-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

.upload-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    margin-bottom: 2rem;
}

.file-upload {
    width: 100%;
    height: 300px;
    margin: 0;
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--inner-shadow);
    overflow: hidden;
}

.file-upload.error {
    border: 2px solid #ff4444;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload .file-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.file-upload .file-text {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--accent-color);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 1rem;
}

.file-text.error {
    color: #ff4444;
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.file-info {
    margin: 0;
    padding: 1.5rem;
    background: rgba(0, 148, 216, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
}

.info-section h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-section ul li {
    color: var(--text-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.info-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.preview-container {
    margin: 2rem 0;
    text-align: center;
}

.preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: var(--neumorphic-shadow);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.preview-header h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 0;
}

.image-dimensions {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

.analyze-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 200px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--inner-shadow);
}

.analyze-btn:hover {
    background: #00b3ff;
    transform: translateY(-2px);
    box-shadow: var(--neumorphic-shadow);
}

.sample-images-section {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(0, 148, 216, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.sample-images-section h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sample-images-section p {
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.sample-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.sample-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.sample-image:hover {
    transform: translateY(-2px);
}

.sample-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: var(--inner-shadow);
}

.sample-image span {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .upload-section {
        grid-template-columns: 1fr;
    }
    
    .file-upload {
        height: 250px;
    }

    .sample-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .upload-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .file-upload {
        height: 200px;
        padding: 1.5rem;
    }

    .file-info {
        padding: 1rem;
    }

    .info-section {
        padding: 0.8rem;
    }

    .preview-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .sample-images-grid {
        grid-template-columns: 1fr;
    }
    
    .sample-image img {
        height: 200px;
    }
} 