/* Upload page */

.upload-page {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-xl);
}

.upload-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.upload-header h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.upload-header p {
    color: var(--color-text-muted);
}

.upload-area {
    max-width: 500px;
    margin: 0 auto;
}

/* Dropzone */
.dropzone {
    border: 2px dashed var(--color-brown-200);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-bg-card);
}

.dropzone:hover,
.dropzone-active {
    border-color: var(--color-primary);
    background: rgba(232, 115, 74, 0.03);
}

.dropzone-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.dropzone-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-brown-700);
    margin-bottom: var(--space-xs);
}

.dropzone-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.dropzone-hint {
    color: var(--color-text-light);
    font-size: 0.8rem;
}

.dropzone-or {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
}

.dropzone-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin: var(--space-lg) 0;
    flex-wrap: wrap;
}

.dropzone-btn {
    flex: 1;
    max-width: 180px;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    font-size: 0.95rem;
}

.dropzone-btn-icon {
    width: 28px;
    height: 28px;
}

.dropzone-preview {
    position: relative;
}

.dropzone-preview-img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius-md);
    margin: 0 auto;
}

.dropzone-preview-overlay {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-success);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Pet name */
.upload-pet-name {
    max-width: 500px;
    margin: var(--space-xl) auto 0;
}

.upload-pet-name label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-brown-600);
    margin-bottom: var(--space-xs);
}

.upload-pet-name input {
    width: 100%;
    padding: 0.75rem var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-sans);
    background: var(--color-bg-card);
    transition: border-color 0.2s;
}

.upload-pet-name input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Actions */
.upload-actions {
    max-width: 500px;
    margin: var(--space-xl) auto 0;
    display: flex;
    justify-content: center;
}

/* Camera viewfinder */
.camera-viewfinder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
}

.camera-viewfinder video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.camera-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
}

.camera-shutter {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

/* Error */
.upload-error {
    max-width: 500px;
    margin: var(--space-md) auto 0;
    padding: var(--space-md);
    background: #fef2f2;
    color: var(--color-error);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    text-align: center;
}
