html,
body {
    height: 100%;
}

body {
    /*background-color: #f8f5f0;*/
    font-family: "Inter", sans-serif;
}

.card {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1055;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    margin: 0 1rem;
    cursor: pointer;
    border-radius: 0.25rem;
    user-select: none;
    transition: background 0.2s;
}

.lightbox-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.signature-textarea {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    cursor: text;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    resize: vertical;
}

.signature-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.signature-textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Upload Loading States */
.upload-form {
    position: relative;
}

.upload-form.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-progress-container {
    text-align: center;
}

.upload-status {
    margin-top: 1rem;
}

.current-file {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.upload-stats {
    font-size: 0.875rem;
}

/* Cloudinary Image Loading */
.card-img-top {
    transition: opacity 0.3s ease;
}

.card-img-top.loading {
    opacity: 0.6;
}

/* Cloudinary Upload Animation */
@keyframes cloudinary-upload {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.cloudinary-uploading {
    animation: cloudinary-upload 2s ease-in-out infinite;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .upload-progress-container {
        padding: 0 1rem;
    }

    .current-file {
        flex-direction: column;
        text-align: center;
    }

    .current-file i {
        margin-bottom: 0.5rem;
    }
}
