.logo {
    max-width: 300px;
    height: auto;
}

/* Kontejner pro podpisové plátno */
.signature-container {
    width: 100%;
    height: 300px;
    margin: 0 auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
}

#signaturePad {
    width: 100%;
    height: 100%;
    background-color: white;
    touch-action: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.signature-preview {
    max-width: 300px;
    border: 1px solid #ddd;
    margin-top: 20px;
}

.success-checkmark {
    animation: scale-up 0.5s ease-in-out;
}

@keyframes scale-up {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

#pdfLink {
    display: inline-block;
    transition: transform 0.2s;
}

#pdfLink:hover {
    transform: scale(1.1);
}

/* Modal styly */
.modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

.modal-content {
    border-radius: 8px;
}

.modal-body {
    padding: 20px;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loadingSpinner .spinner-border {
    width: 4rem;
    height: 4rem;
    border-width: 0.25rem;
}

/* Mobilní zařízení */
@media (max-width: 768px) {
    .signature-container {
        height: 250px;
    }

    .modal-dialog {
        margin: 10px;
        max-width: none;
    }

    .form-check-label {
        font-size: 0.9rem;
    }

    .logo {
        max-width: 200px;
    }

    .modal-body {
        padding: 15px;
    }
}

/* Malé mobilní zařízení */
@media (max-width: 576px) {
    .signature-container {
        height: 200px;
    }

    .modal-dialog {
        margin: 5px;
    }

    .modal-footer {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        margin: 0;
    }
}