.photo-upload-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 4px;
}

.photo-upload-intro {
    text-align: center;
    margin-bottom: 24px;
}

.photo-upload-heading {
    font-size: 1.6rem;
    font-weight: 500;
    color: #2D6B5E;
    margin-bottom: 8px;
}

.photo-upload-text {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.photo-upload-form .form-group {
    margin-bottom: 20px;
}

.photo-upload-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #2D6B5E;
}

.photo-upload-form input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
}

.photo-upload-form input[type="text"]:focus {
    outline: none;
    border-color: #4DA694;
}

.photo-upload-form .field-hint {
    display: block;
    margin-top: 6px;
    color: #777;
    font-size: 0.85rem;
}

.photo-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.photo-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    border: 2px dashed #4DA694;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(77, 166, 148, 0.06) 0%, rgba(77, 166, 148, 0.02) 100%);
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.photo-dropzone:hover,
.photo-dropzone:focus-within {
    background: rgba(77, 166, 148, 0.12);
    border-color: #2D6B5E;
}

.photo-dropzone:active {
    transform: scale(0.99);
}

.photo-dropzone.is-dragover {
    background: rgba(77, 166, 148, 0.18);
    border-color: #2D6B5E;
    border-style: solid;
}

.photo-dropzone-icon {
    font-size: 3rem;
    line-height: 1;
}

.photo-dropzone-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: #2D6B5E;
}

.photo-dropzone-hint {
    font-size: 0.9rem;
    color: #666;
}

.photo-queue {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.photo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.photo-item[data-status="success"] {
    border-color: #4DA694;
    background: rgba(77, 166, 148, 0.04);
}

.photo-item[data-status="error"] {
    border-color: #E57373;
    background: rgba(229, 115, 115, 0.04);
}

.photo-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-thumb-icon {
    font-size: 1.8rem;
}

.photo-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.photo-name {
    font-size: 0.95rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-size {
    font-size: 0.8rem;
    color: #888;
}

.photo-status {
    font-size: 0.85rem;
    color: #666;
    min-height: 1.1em;
}

.photo-item[data-status="success"] .photo-status {
    color: #2D6B5E;
    font-weight: 500;
}

.photo-item[data-status="error"] .photo-status {
    color: #C62828;
    font-weight: 500;
}

.photo-progress {
    height: 4px;
    background: #EEE;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.photo-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4DA694, #2D6B5E);
    transition: width 0.15s linear;
}

.photo-item[data-status="success"] .photo-progress-bar {
    background: #4DA694;
}

.photo-item[data-status="error"] .photo-progress-bar {
    background: #E57373;
}

.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.btn-text {
    background: none;
    border: none;
    color: #2D6B5E;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}

.btn-text:hover {
    background: rgba(77, 166, 148, 0.12);
}

.btn-text-danger {
    color: #C62828;
}

.btn-text-danger:hover {
    background: rgba(229, 115, 115, 0.12);
}

.photo-upload-status {
    margin-top: 16px;
    text-align: center;
    color: #555;
    font-size: 0.95rem;
    min-height: 1.2em;
}

.photo-upload-actions {
    margin-top: 24px;
    text-align: center;
}

.btn-link {
    color: #2D6B5E;
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .photo-dropzone {
        padding: 32px 16px;
    }

    .photo-dropzone-icon {
        font-size: 2.5rem;
    }

    .photo-thumb {
        width: 56px;
        height: 56px;
    }

    .photo-actions {
        flex-direction: row;
    }
}
