﻿html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/* Buttons & Inputs focus */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Dropdown */
.dropdown-toggle::after {
    display: none !important;
}

a.dropdown-toggle:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Layout helpers */
.min-vh-100 {
    min-height: 80vh;
}

.sticky-top {
    z-index: 1020;
}

/* Cards */
.card {
    border-radius: 0.5rem;
}

.card-header {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
    font-weight: 500;
}

/* Input groups */
.input-group-text {
    border-right: none;
}

.form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
    border-color: #86b7fe;
}

/* Disabled inputs */
.form-control:disabled {
    background-color: #fff;
    opacity: 0.8;
}

/* Toggle password button */
#togglePassword:hover {
    background-color: #e9ecef !important;
}

/* Button groups */
.btn-group .btn {
    border-radius: 0;
}

    .btn-group .btn:first-child {
        border-top-left-radius: 0.375rem;
        border-bottom-left-radius: 0.375rem;
    }

    .btn-group .btn:last-child {
        border-top-right-radius: 0.375rem;
        border-bottom-right-radius: 0.375rem;
    }

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #212529;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, .125);
}

.accordion-item:last-child {
    border-bottom: 0 !important;
}

/* Placeholder buttons */
.placeholder-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

    .placeholder-btn:hover {
        background-color: #e3f2fd !important;
        transform: scale(1.05) translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .placeholder-btn:active {
        transform: scale(0.98);
    }

/* Message preview & input */
#messageInput {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

#previewMessage {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 100px;
}

/* Dropdown styling */
.dropdown-toggle::after {
    margin-left: 0.255em;
    vertical-align: middle;
}

/* White background for dropdown */
.dropdown-menu {
    background-color: white !important;
}

.dropdown-item {
    color: #212529;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: black;
        font-weight: 500;
    }

/* Position dropdown for small screens */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: fixed !important;
        top: 60px !important;
        right: 10px !important;
        left: auto !important;
        transform: none !important;
    }
}

/* Navbar text color */
.nav-link {
    color: lightgray !important;
}

    .nav-link:hover,
    .nav-link:focus {
        color: rgba(255, 255, 255) !important;
    }


    .nav-link.active {
        color: white !important;
    }

@keyframes fadeInFall {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-fall {
    animation: fadeInFall 0.5s ease-out forwards;
    opacity: 0;
}

/* Staggered animation delays for sequential appearance */
.fade-in-fall:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in-fall:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in-fall:nth-child(3) {
    animation-delay: 0.3s;
}

.fade-in-fall:nth-child(4) {
    animation-delay: 0.4s;
}

.fade-in-fall:nth-child(5) {
    animation-delay: 0.5s;
}

.fade-in-fall:nth-child(6) {
    animation-delay: 0.6s;
}

.fade-in-fall:nth-child(7) {
    animation-delay: 0.7s;
}

.fade-in-fall:nth-child(8) {
    animation-delay: 0.8s;
}

.fade-in-fall:nth-child(9) {
    animation-delay: 0.9s;
}

.fade-in-fall:nth-child(10) {
    animation-delay: 1.0s;
}

.fade-in-fall:nth-child(11) {
    animation-delay: 1.1s;
}

.fade-in-fall:nth-child(12) {
    animation-delay: 1.2s;
}

.fade-in-fall:nth-child(13) {
    animation-delay: 1.3s;
}

.fade-in-fall:nth-child(14) {
    animation-delay: 1.4s;
}

.fade-in-fall:nth-child(15) {
    animation-delay: 1.5s;
}

.fade-in-fall:nth-child(16) {
    animation-delay: 1.6s;
}

.fade-in-fall:nth-child(17) {
    animation-delay: 1.7s;
}

.fade-in-fall:nth-child(18) {
    animation-delay: 1.8s;
}

.fade-in-fall:nth-child(19) {
    animation-delay: 1.9s;
}

.fade-in-fall:nth-child(20) {
    animation-delay: 2.0s;
}

.fade-in-fall:nth-child(21) {
    animation-delay: 2.1s;
}

.fade-in-fall:nth-child(22) {
    animation-delay: 2.2s;
}

.fade-in-fall:nth-child(23) {
    animation-delay: 2.3s;
}

.fade-in-fall:nth-child(24) {
    animation-delay: 2.4s;
}

.fade-in-fall:nth-child(25) {
    animation-delay: 2.5s;
}

.fade-in-fall:nth-child(26) {
    animation-delay: 2.6s;
}

.fade-in-fall:nth-child(27) {
    animation-delay: 2.7s;
}

.fade-in-fall:nth-child(28) {
    animation-delay: 2.8s;
}

.fade-in-fall:nth-child(29) {
    animation-delay: 2.9s;
}

.fade-in-fall:nth-child(30) {
    animation-delay: 3.0s;
}



#loader-wrapper {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-container {
    position: relative;
    flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    height: 60px;
    aspect-ratio: 2;
    border-bottom: 3px solid #0000;
    position: relative;
    animation: l3-0 .75s linear infinite;
}

    .loader:before {
        content: "";
        position: absolute;
        right: 102%;
        bottom: 0%;
        aspect-ratio: 1;
        width: 15%; 
        border-radius: 50%;
        background: #EB3300;
        animation: l3-1 .75s cubic-bezier(0,900,1,900) infinite;
    }

@keyframes l3-0 {
    to {
        background-position: -125% 100%
    }
}

@keyframes l3-1 {
    0%,2% {
        bottom: 210px
    }
    98%,to {
        bottom: 210.1px
    }
}

.loader-img {
    width: 250px; 
    height: auto;
}

.horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.horizontal-scroll-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    padding-bottom: 0.5rem;
}

.process-card {
    flex: 0 0 auto;
    width: 300px;
}

.process-card .card {
    height: 100%;
}
