@font-face {
    font-family: "harabara";
    src:
        url("/Fonts/harabara/Harabara.otf") format("opentype"),
        url("/Fonts/harabara/Harabara.ttf") format("truetype");
}

html,
body {
    font-family: "Roboto", sans-serif !important;
    background-color: #fff !important;
    overflow-x: hidden;
    color: #1a1a1a;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #1c272f;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover,
.btn-link:hover {
    color: #49576b;
    text-decoration: underline;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(27, 110, 194, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(27, 110, 194, 0.15);
}

.content {
    padding-top: 1.1rem;
    animation: fadeIn 0.4s ease-out;
}

.valid.modified:not([type="checkbox"]) {
    outline: 2px solid #217c51;
}

.invalid {
    outline: 2px solid #ab2f00;
}

.validation-message {
    color: #ab2f00;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

#components-reconnect-modal {
    z-index: 999999999999999999;
    position: relative;
}

#blazor-error-ui {
    background: linear-gradient(to right, #990000, #ab2f00);
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
    font-weight: 500;
    animation: slideInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    color: white;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

#blazor-error-ui .dismiss:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.blazor-error-boundary {
    background: linear-gradient(to right, #990000, #ab2f00);
    padding: 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 500;
    border-left: 4px solid #660000;
    box-shadow: 0 4px 12px rgba(153, 0, 0, 0.2);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.divider {
    border-bottom: 1px solid #e5e5e5;
}

.e-sidebar {
    padding: 1rem;
    background: #ffffff;
    border-right: 1px solid #d6d5d5;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.pop-container {
    position: relative;
}

.popconfirm {
    background: white;
    border: 1px solid #d6d5d5;
    border-radius: 0.75rem;
    width: 250px;
    position: absolute;
    top: -50px;
    padding: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.e-btn,
.e-css.e-btn {
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
}

.e-btn:hover {
    transform: translateY(-2px);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #d0d0d0 #f9fafb;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: #f9fafb;
}

*::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
    background: #a6a6a6;
}

/* ==================== MODERN ANIMATIONS ==================== */

/* Fade animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Slide animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale animations */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotation animations */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: rotate(0deg);
    }
}

/* Bounce effect */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Animation utility classes */
.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-fadeOut {
    animation: fadeOut 0.4s ease-out forwards;
}

.animate-fadeInUp {
    animation: slideInUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.animate-fadeInDown {
    animation: slideInDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.animate-fadeInLeft {
    animation: slideInLeft 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.animate-fadeInRight {
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.animate-scaleIn {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.animate-rotateIn {
    animation: rotateIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.animate-bounceIn {
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

/* Animation delays for stagger effect */
.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

.animate-delay-500 {
    animation-delay: 0.5s;
}

.animate-delay-600 {
    animation-delay: 0.6s;
}

.animate-delay-700 {
    animation-delay: 0.7s;
}

.animate-delay-800 {
    animation-delay: 0.8s;
}

/* ==================== HOVER EFFECTS ==================== */

.transition-transform {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(28, 39, 47, 0.15);
}

.hover-scale-lift:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 25px rgba(28, 39, 47, 0.15);
}

.hover-scale-lift-sm:hover {
    transform: scale(1.01) translateY(-1px);
    box-shadow: 0 4px 12px rgba(28, 39, 47, 0.1);
}

/* ==================== MODERN GRADIENT EFFECTS ==================== */

@keyframes heroGradientFlow {
    0% {
        background-position: 200% 0%;
    }
    100% {
        background-position: -200% 0%;
    }
}

.hero-title {
    font-family: "harabara";
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.9;
    background: linear-gradient(
        120deg,
        #ffffff 0%,
        #ffffff 45%,
        #49576b 50%,
        #ffffff 55%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: heroGradientFlow 2s ease-in-out forwards;
    letter-spacing: 1px;
}

.hero-title-dark {
    font-family: "harabara";
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 0.9;
    background: linear-gradient(
        to right,
        #49576b 20%,
        #49576b9f 40%,
        #49576b 60%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 500% auto;
    animation: heroGradientFlow 5s ease-in-out infinite alternate;
    letter-spacing: 1px;
}
