.upload-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--color-bg);
    border-radius: 18px;
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-1);
}

.upload-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.upload-header h1 {
    color: var(--color-link);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.upload-header p {
    color: var(--color-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent);
}

.species-search {
    position: relative;
}

.species-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.species-option {
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.species-option:hover {
    background: var(--color-hover-bg);
}

.species-option.selected {
    background: var(--color-hover-bg-strong);
}

.file-upload-area {
    border: 3px dashed var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover, .file-upload-area.dragover {
    border-color: var(--accent);
    background: var(--color-hover-bg);
}

.file-upload-icon {
    font-size: 3rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.file-upload-text {
    color: var(--color-muted);
    font-size: 1.1rem;
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--color-soft-bg);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-remove {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
}

.disclaimer-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.disclaimer-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.disclaimer-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    transform: scale(1.2);
}

.disclaimer-link {
    color: var(--color-link);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.submit-btn {
    background: var(--btn-bg);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    background: var(--btn-bg-hover);
}

.submit-btn:disabled {
    background: var(--color-muted);
    cursor: not-allowed;
}

.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.debug-message {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-link);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.photo-notice {
    background: linear-gradient(135deg, #fef7f7 0%, #fdf2f2 100%);
    border: 2px solid #f8d7da;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(248, 215, 218, 0.3);
    position: relative;
    overflow: hidden;
}

.photo-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #dc3545, #e74c3c);
    border-radius: 0 2px 2px 0;
}

.photo-notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.photo-notice-icon {
    font-size: 1.8em;
    color: #dc3545;
    background: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

.photo-notice-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #721c24;
    margin: 0;
}

.photo-notice-content {
    color: #721c24;
    line-height: 1.6;
    margin-left: 52px;
}

.photo-notice-highlight {
    background: rgba(220, 53, 69, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    position: relative;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.modal-header h2 {
    color: #333;
    margin-bottom: 1rem;
}

.modal-body h3 {
    color: #555;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .upload-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .photo-notice {
        padding: 15px;
        margin: 15px 0;
    }
    
    .photo-notice-content {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .photo-notice-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
}