@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
    margin: 0;
}

.title {
    font-family: "Playfair Display", serif;
    font-weight: bold;
    font-style: normal;
}

.text-theme {
    color: var(--theme-color) !important;
}

.bg-theme {
    background-color: var(--theme-color) !important;
}

.bg-theme-light {
    background-color: var(--theme-color-light) !important;
}



.btn-theme {
    background-color: var(--theme-color) !important;
    color: white !important;
}

.form-label {
    font-weight: bold;
}

.required::after {
    content: ' * ';
    color: rgb(229, 47, 47);
}

.border-theme {
    border-color: var(--theme-color) !important;
}

.btn {
    box-shadow: none !important;
}

.no-wrap {
    text-wrap: nowrap;
}

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

.transition {
    transition: all 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important
}

a {
    text-decoration: none !important;
}

.clamp1,
.clamp2,
.clamp3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: normal !important;
}

.clamp1 {
    -webkit-line-clamp: 1;
}

.clamp2 {
    -webkit-line-clamp: 2;
}

.fs-7 {
    font-size: 0.8rem;
}

.form-control {
    box-shadow: none !important;
}

.pointer {
    cursor: pointer !important;
}

.z-999 {
    z-index: 999 !important;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline;
}

.hide {
    display: none;
}

.shimmer {
    animation: shimmer var(--animation-duration, 0.2s) infinite linear;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}


@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Voice Recording Indicator */
.recording-indicator {
    width: 12px;
    height: 12px;
    background-color: #dc3545;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}