/* Custom styles for RechtsBrief.nl */

/* Tooltip styling */
.tooltip {
    position: absolute;
    z-index: 1000;
    background-color: #334155;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    max-width: 300px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #334155 transparent;
}

/* Custom transitions */
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Adjustments for letter view */
.letter-content {
    line-height: 1.7;
}

.letter-content p {
    margin-bottom: 1rem;
}

/* Letter type badge colors */
.letter-type-klacht {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.letter-type-bezwaar {
    background-color: #FEF3C7;
    color: #92400E;
}

.letter-type-incasso {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.letter-type-ingebrekestelling {
    background-color: #EDE9FE;
    color: #5B21B6;
}

/* Form improvements */
textarea:focus, input:focus, select:focus {
    outline: none !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Voorkom horizontaal scrollen voor de hele pagina */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }
    
    /* Zorg dat knoppen de juiste breedte hebben op mobiel */
    .mobile-full-width {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}
