@import url('../webforge/assets/css/bootstrap.min.css');
@import url('../webforge/assets/icons/bootstrap-icons/bootstrap-icons.min.css');

@font-face {
    font-family: 'Exo 2';
    src: url('../webforge/assets/fonts/Exo_2/exo2.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Fluent Color System */
    --fluent-primary: #0F6CBD;
    --fluent-primary-light: #E6F0FA;
    --fluent-primary-dark: #004578;
    --fluent-secondary: #797775;
    --fluent-success: #107C10;
    --fluent-danger: #D13438;
    --fluent-warning: #FFB900;
    --fluent-info: #00B7C3;

    /* Fluent Elevation */
    --fluent-shadow-4: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108);
    --fluent-shadow-8: 0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108);
    --fluent-shadow-16: 0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108);
    --fluent-shadow-64: 0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18);

    /* Fluent Radius */
    --fluent-radius-sm: 2px;
    --fluent-radius-md: 4px;
    --fluent-radius-lg: 8px;
    --fluent-radius-xl: 12px;

    /* Fluent Animation */
    --fluent-duration-fast: 0.1s;
    --fluent-duration-normal: 0.2s;
    --fluent-duration-slow: 0.4s;
}

body {
    font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #FAF9F8;
    color: #323130;
    -webkit-font-smoothing: antialiased;
}

/* ===== BUTTONS - Fluent Style ===== */
.btn {
    border-radius: var(--fluent-radius-sm);
    border: 1px solid transparent;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--fluent-duration-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--fluent-shadow-4);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background var(--fluent-duration-normal);
}

.btn:hover::after {
    background: rgba(255, 255, 255, 0.08);
}

.btn:active::after {
    background: rgba(0, 0, 0, 0.08);
}

.btn-primary {
    background: var(--fluent-primary);
    border-color: var(--fluent-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--fluent-primary-dark);
    border-color: var(--fluent-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--fluent-shadow-8);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--fluent-shadow-4);
}

.btn-outline-primary {
    color: var(--fluent-primary);
    border-color: var(--fluent-primary);
    background: transparent;
    box-shadow: none;
}

.btn-outline-primary:hover {
    background: var(--fluent-primary-light);
    border-color: var(--fluent-primary);
    color: var(--fluent-primary);
    box-shadow: var(--fluent-shadow-4);
}

.btn-outline-primary:active {
    background: rgba(15, 108, 189, 0.15);
}

.btn-success {
    background: var(--fluent-success);
    border-color: var(--fluent-success);
    color: #fff;
}

.btn-success:hover {
    background: #0A5E0A;
    border-color: #0A5E0A;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--fluent-shadow-8);
}

.btn-danger {
    background: var(--fluent-danger);
    border-color: var(--fluent-danger);
    color: #fff;
}

.btn-danger:hover {
    background: #A72A2E;
    border-color: #A72A2E;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--fluent-shadow-8);
}

.btn-warning {
    background: var(--fluent-warning);
    border-color: var(--fluent-warning);
    color: #323130;
}

.btn-warning:hover {
    background: #E5A700;
    border-color: #E5A700;
    transform: translateY(-1px);
    box-shadow: var(--fluent-shadow-8);
}

.btn-info {
    background: var(--fluent-info);
    border-color: var(--fluent-info);
    color: #fff;
}

.btn-info:hover {
    background: #0099A3;
    border-color: #0099A3;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--fluent-shadow-8);
}

.btn-light {
    background: #FFFFFF;
    border-color: #D2D0CE;
    color: #323130;
    box-shadow: var(--fluent-shadow-4);
}

.btn-light:hover {
    background: #F3F2F1;
    border-color: #C8C6C4;
    color: #323130;
    box-shadow: var(--fluent-shadow-8);
}

.btn-dark {
    background: #323130;
    border-color: #323130;
    color: #fff;
}

.btn-dark:hover {
    background: #201F1F;
    border-color: #201F1F;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--fluent-shadow-8);
}

.btn-link {
    color: var(--fluent-primary);
    text-decoration: none;
    box-shadow: none;
    padding: 0.5rem 0.75rem;
}

.btn-link:hover {
    color: var(--fluent-primary-dark);
    text-decoration: underline;
}

.btn-lg {
    padding: 0.625rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--fluent-radius-sm);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    border-radius: var(--fluent-radius-sm);
}

/* ===== CARDS - Fluent Style with Full Animations ===== */
.card {
    border: none;
    border-radius: var(--fluent-radius-md);
    box-shadow: var(--fluent-shadow-4);
    background: #FFFFFF;
    transition: all var(--fluent-duration-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.card:hover {
    transform: translateY(-4px) scale(1.002);
    box-shadow: var(--fluent-shadow-16);
}

.card:active {
    transform: translateY(-1px) scale(0.998);
    box-shadow: var(--fluent-shadow-8);
    transition-duration: var(--fluent-duration-fast);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #EDEBE9;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}

.card-footer {
    background: transparent;
    border-top: 1px solid #EDEBE9;
    padding: 0.875rem 1.25rem;
}

.card-title {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    transition: color var(--fluent-duration-fast) ease;
}

.card:hover .card-title {
    color: var(--fluent-primary);
}

.card-subtitle {
    color: #605E5C;
    font-size: 0.875rem;
}

.card-body {
    padding: 1.25rem;
}

.card .card-img-top {
    transition: transform var(--fluent-duration-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

.card .card-text {
    transition: opacity var(--fluent-duration-normal) ease;
}

.card .btn {
    transition: all var(--fluent-duration-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

.card:hover .btn {
    transform: translateY(-2px);
    box-shadow: var(--fluent-shadow-8);
}

/* Card Enter Animation */
.card-enter {
    animation: cardFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.card-enter:nth-child(1) {
    animation-delay: 0.05s;
}

.card-enter:nth-child(2) {
    animation-delay: 0.10s;
}

.card-enter:nth-child(3) {
    animation-delay: 0.15s;
}

.card-enter:nth-child(4) {
    animation-delay: 0.20s;
}

.card-enter:nth-child(5) {
    animation-delay: 0.25s;
}

.card-enter:nth-child(6) {
    animation-delay: 0.30s;
}

.card-enter:nth-child(7) {
    animation-delay: 0.35s;
}

.card-enter:nth-child(8) {
    animation-delay: 0.40s;
}

.card-enter:nth-child(9) {
    animation-delay: 0.45s;
}

.card-enter:nth-child(10) {
    animation-delay: 0.50s;
}

.card-enter:nth-child(11) {
    animation-delay: 0.55s;
}

.card-enter:nth-child(12) {
    animation-delay: 0.60s;
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Card Stack Effect */
.card-stack {
    transition: all var(--fluent-duration-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-stack:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-1deg);
    box-shadow: var(--fluent-shadow-64);
}

/* Card Float Animation */
.card-float {
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Card Glow Effect */
.card-glow {
    transition: all var(--fluent-duration-normal) ease;
}

.card-glow:hover {
    box-shadow:
        0 8px 30px rgba(15, 108, 189, 0.15),
        0 0 40px rgba(15, 108, 189, 0.05);
    border-color: rgba(15, 108, 189, 0.2);
}

/* Card Pulse Animation */
.card-pulse {
    animation: cardPulse 2s ease-in-out infinite;
    border: 2px solid transparent;
}

@keyframes cardPulse {

    0%,
    100% {
        border-color: transparent;
        box-shadow: var(--fluent-shadow-4);
    }

    50% {
        border-color: var(--fluent-primary);
        box-shadow: 0 0 20px rgba(15, 108, 189, 0.2);
    }
}

/* Card Tilt 3D Effect */
.card-tilt {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    perspective: 800px;
}

.card-tilt:hover {
    transform:
        rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
    box-shadow: var(--fluent-shadow-16);
}

/* Card Shadow Expand */
.card-shadow-expand {
    transition: all var(--fluent-duration-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-shadow-expand::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(15, 108, 189, 0);
    transition: all var(--fluent-duration-normal) ease;
    pointer-events: none;
    z-index: -1;
}

.card-shadow-expand:hover::before {
    box-shadow: 0 0 40px 10px rgba(15, 108, 189, 0.1);
}

/* Card Accent Line */
.card-accent {
    position: relative;
    overflow: hidden;
}

.card-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--fluent-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--fluent-duration-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-accent:hover::after {
    transform: scaleX(1);
}

.card-accent-success::after {
    background: var(--fluent-success);
}

.card-accent-danger::after {
    background: var(--fluent-danger);
}

.card-accent-warning::after {
    background: var(--fluent-warning);
}

.card-accent-info::after {
    background: var(--fluent-info);
}

/* Card Icon */
.card-icon {
    text-align: center;
    padding-top: 2rem;
}

.card-icon .icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--fluent-primary-light);
    color: var(--fluent-primary);
    font-size: 2rem;
    transition: all var(--fluent-duration-normal) cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-bottom: 1rem;
}

.card-icon:hover .icon-wrapper {
    transform: scale(1.1) rotate(4deg);
    box-shadow: 0 8px 25px rgba(15, 108, 189, 0.2);
    background: var(--fluent-primary);
    color: #fff;
}

/* Card Horizontal */
.card-horizontal {
    transition: all var(--fluent-duration-normal) ease;
}

.card-horizontal:hover {
    transform: translateX(4px);
    box-shadow: var(--fluent-shadow-8);
}

/* Card Shine Effect */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: left var(--fluent-duration-slow) ease;
}

.card-shine:hover::before {
    left: 200%;
}

/* Card Wave Effect */
.card-wave {
    position: relative;
    overflow: hidden;
}

.card-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(15, 108, 189, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.card-wave:hover::after {
    width: 300%;
    height: 300%;
}

/* Card Scroll Animation */
.card-scroll {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Card Gradient */
.card-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: all var(--fluent-duration-slow) ease;
}

.card-gradient:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #b3c6ff 100%);
    transform: translateY(-4px);
    box-shadow: var(--fluent-shadow-16);
}

/* Card Reveal Overlay */
.card-reveal {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-reveal .card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 108, 189, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--fluent-duration-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
    border-radius: inherit;
}

.card-reveal:hover .card-overlay {
    opacity: 1;
    transform: scale(1);
}

/* Card Skeleton Loading */
.card-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: var(--fluent-radius-md);
    min-height: 200px;
}

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== ANIMATION UTILITY CLASSES ===== */
.animation-delay-1 {
    animation-delay: 0.1s;
}

.animation-delay-2 {
    animation-delay: 0.2s;
}

.animation-delay-3 {
    animation-delay: 0.3s;
}

.animation-delay-4 {
    animation-delay: 0.4s;
}

.animation-delay-5 {
    animation-delay: 0.5s;
}

.animation-delay-6 {
    animation-delay: 0.6s;
}

.animation-delay-7 {
    animation-delay: 0.7s;
}

.animation-delay-8 {
    animation-delay: 0.8s;
}

.animation-delay-9 {
    animation-delay: 0.9s;
}

.animation-delay-10 {
    animation-delay: 1.0s;
}

.animation-fast {
    animation-duration: 0.3s;
}

.animation-normal {
    animation-duration: 0.6s;
}

.animation-slow {
    animation-duration: 1s;
}

.animation-slower {
    animation-duration: 1.5s;
}

.ease-in-out {
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ease-spring {
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ease-bounce {
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hover-lift {
    transition: all var(--fluent-duration-normal) ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--fluent-shadow-8);
}

.hover-scale {
    transition: transform var(--fluent-duration-normal) ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.hover-rotate {
    transition: transform var(--fluent-duration-normal) ease;
}

.hover-rotate:hover {
    transform: rotate(2deg);
}

.hover-glow {
    transition: all var(--fluent-duration-normal) ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(15, 108, 189, 0.15);
    border-color: var(--fluent-primary);
}

/* ===== NAVBAR - Fluent Style ===== */
.navbar {
    background: #FFFFFF;
    box-shadow: var(--fluent-shadow-4);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #323130;
}

.navbar-brand:hover {
    color: var(--fluent-primary);
}

.nav-link {
    color: #605E5C;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--fluent-radius-sm);
    transition: all var(--fluent-duration-fast);
    position: relative;
}

.nav-link:hover {
    color: #323130;
    background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
    color: var(--fluent-primary);
    background: var(--fluent-primary-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--fluent-primary);
    border-radius: 2px;
}

.dropdown-menu {
    border: none;
    border-radius: var(--fluent-radius-md);
    box-shadow: var(--fluent-shadow-16);
    padding: 0.25rem 0;
    background: #FFFFFF;
    min-width: 12rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #323130;
    transition: background var(--fluent-duration-fast);
}

.dropdown-item:hover {
    background: var(--fluent-primary-light);
    color: var(--fluent-primary);
}

.dropdown-item:active {
    background: var(--fluent-primary);
    color: #fff;
}

/* ===== FORMS - Fluent Style ===== */
.form-control {
    border: 1px solid #D2D0CE;
    border-radius: var(--fluent-radius-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: #FFFFFF;
    color: #323130;
    transition: all var(--fluent-duration-fast);
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--fluent-primary);
    box-shadow: 0 0 0 2px rgba(15, 108, 189, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #A19F9D;
}

.form-control:disabled {
    background: #F3F2F1;
    border-color: #C8C6C4;
    opacity: 0.7;
}

.form-label {
    font-weight: 500;
    font-size: 0.8125rem;
    color: #323130;
    margin-bottom: 0.25rem;
}

.form-select {
    border: 1px solid #D2D0CE;
    border-radius: var(--fluent-radius-sm);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23323130' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-select:focus {
    border-color: var(--fluent-primary);
    box-shadow: 0 0 0 2px rgba(15, 108, 189, 0.15);
}

.form-check-input {
    border: 1px solid #A19F9D;
    border-radius: var(--fluent-radius-sm);
    width: 1rem;
    height: 1rem;
    transition: all var(--fluent-duration-fast);
}

.form-check-input:checked {
    background-color: var(--fluent-primary);
    border-color: var(--fluent-primary);
}

.form-check-input:focus {
    border-color: var(--fluent-primary);
    box-shadow: 0 0 0 2px rgba(15, 108, 189, 0.15);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-switch .form-check-input {
    border-radius: 1rem;
    width: 2rem;
    background-color: #C8C6C4;
}

.form-switch .form-check-input:checked {
    background-color: var(--fluent-primary);
    border-color: var(--fluent-primary);
}

/* ===== TABLES - Fluent Style ===== */
.table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.table> :not(caption)>*>* {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #EDEBE9;
}

.table thead th {
    background: #F3F2F1;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #605E5C;
    border-bottom: 2px solid #EDEBE9;
}

.table-hover tbody tr:hover {
    background: var(--fluent-primary-light);
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #FAF9F8;
}

.table-bordered {
    border: 1px solid #EDEBE9;
    border-radius: var(--fluent-radius-md);
    overflow: hidden;
}

.table-bordered> :not(caption)>*>* {
    border-color: #EDEBE9;
}

/* ===== ALERTS - Fluent Style ===== */
.alert {
    border: none;
    border-radius: var(--fluent-radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    box-shadow: var(--fluent-shadow-4);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert::before {
    font-family: 'bootstrap-icons';
    font-size: 1.25rem;
    line-height: 1;
}

.alert-primary {
    background: var(--fluent-primary-light);
    color: var(--fluent-primary-dark);
}

.alert-primary::before {
    content: '\F42A';
    color: var(--fluent-primary);
}

.alert-success {
    background: #E8F5E9;
    color: #0A5E0A;
}

.alert-success::before {
    content: '\F26B';
    color: var(--fluent-success);
}

.alert-danger {
    background: #FDE7E9;
    color: #A72A2E;
}

.alert-danger::before {
    content: '\F5EB';
    color: var(--fluent-danger);
}

.alert-warning {
    background: #FFF4CE;
    color: #8C6E00;
}

.alert-warning::before {
    content: '\F6A3';
    color: var(--fluent-warning);
}

.alert-info {
    background: #E0F7FA;
    color: #007780;
}

.alert-info::before {
    content: '\F431';
    color: var(--fluent-info);
}

/* ===== BADGES - Fluent Style ===== */
.badge {
    border-radius: var(--fluent-radius-sm);
    padding: 0.25rem 0.625rem;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.badge-primary {
    background: var(--fluent-primary-light);
    color: var(--fluent-primary);
}

.badge-success {
    background: #E8F5E9;
    color: #0A5E0A;
}

.badge-danger {
    background: #FDE7E9;
    color: #A72A2E;
}

.badge-warning {
    background: #FFF4CE;
    color: #8C6E00;
}

.badge-info {
    background: #E0F7FA;
    color: #007780;
}

/* ===== PROGRESS - Fluent Style ===== */
.progress {
    height: 0.5rem;
    border-radius: var(--fluent-radius-sm);
    background: #EDEBE9;
    overflow: hidden;
}

.progress-bar {
    background: var(--fluent-primary);
    border-radius: var(--fluent-radius-sm);
    transition: width var(--fluent-duration-slow) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}

/* ===== PAGINATION - Fluent Style ===== */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: none;
    border-radius: var(--fluent-radius-sm);
    padding: 0.5rem 0.75rem;
    color: #323130;
    background: transparent;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--fluent-duration-fast);
    box-shadow: none;
}

.page-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--fluent-primary);
}

.page-item.active .page-link {
    background: var(--fluent-primary);
    color: #fff;
    box-shadow: var(--fluent-shadow-4);
}

.page-item.disabled .page-link {
    color: #A19F9D;
    opacity: 0.6;
}

/* ===== MODAL - Fluent Style ===== */
.modal-content {
    border: none;
    border-radius: var(--fluent-radius-lg);
    box-shadow: var(--fluent-shadow-64);
    background: #FFFFFF;
}

.modal-header {
    border-bottom: 1px solid #EDEBE9;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #EDEBE9;
    padding: 1rem 1.5rem;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* ===== TOOLTIP - Fluent Style ===== */
.tooltip {
    font-family: 'Exo 2', sans-serif;
}

.tooltip-inner {
    background: #323130;
    border-radius: var(--fluent-radius-sm);
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: var(--fluent-shadow-8);
}

.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #323130;
}

/* ===== POPOVER - Fluent Style ===== */
.popover {
    border: none;
    border-radius: var(--fluent-radius-md);
    box-shadow: var(--fluent-shadow-16);
    background: #FFFFFF;
    font-family: 'Exo 2', sans-serif;
}

.popover-header {
    background: transparent;
    border-bottom: 1px solid #EDEBE9;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.popover-body {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #323130;
}

/* ===== ACCORDION - Fluent Style ===== */
.accordion-item {
    border: 1px solid #EDEBE9;
    border-radius: var(--fluent-radius-sm);
    margin-bottom: 0.25rem;
    overflow: hidden;
}

.accordion-item:first-of-type {
    border-top-left-radius: var(--fluent-radius-sm);
    border-top-right-radius: var(--fluent-radius-sm);
}

.accordion-item:last-of-type {
    border-bottom-left-radius: var(--fluent-radius-sm);
    border-bottom-right-radius: var(--fluent-radius-sm);
}

.accordion-button {
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    background: #FAF9F8;
    color: #323130;
    border: none;
    transition: all var(--fluent-duration-fast);
}

.accordion-button:not(.collapsed) {
    background: var(--fluent-primary-light);
    color: var(--fluent-primary);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--fluent-primary);
    box-shadow: 0 0 0 2px rgba(15, 108, 189, 0.15);
}

.accordion-body {
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
}

/* ===== NAV TABS - Fluent Style ===== */
.nav-tabs {
    border-bottom: 2px solid #EDEBE9;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.625rem 1rem;
    color: #605E5C;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 0;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #323130;
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--fluent-primary);
    background: transparent;
    border-bottom-color: var(--fluent-primary);
    border-radius: 0;
}

.nav-pills .nav-link {
    border-radius: var(--fluent-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #605E5C;
}

.nav-pills .nav-link.active {
    background: var(--fluent-primary);
    color: #fff;
    box-shadow: var(--fluent-shadow-4);
}

/* ===== LIST GROUP - Fluent Style ===== */
.list-group-item {
    border-color: #EDEBE9;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    transition: background var(--fluent-duration-fast);
}

.list-group-item-action:hover {
    background: var(--fluent-primary-light);
}

.list-group-item.active {
    background: var(--fluent-primary);
    border-color: var(--fluent-primary);
}

/* ===== BREADCRUMB - Fluent Style ===== */
.breadcrumb {
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '\F285';
    font-family: 'bootstrap-icons';
    color: #A19F9D;
}

.breadcrumb-item a {
    color: var(--fluent-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--fluent-primary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #605E5C;
}

/* ===== CLOSE BUTTON - Fluent Style ===== */
.btn-close {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23323130'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    opacity: 0.5;
    transition: opacity var(--fluent-duration-fast);
    padding: 0.5rem;
}

.btn-close:hover {
    opacity: 0.8;
}

.btn-close:focus {
    box-shadow: 0 0 0 2px rgba(15, 108, 189, 0.15);
    opacity: 0.8;
}

/* ===== UTILITY OVERRIDES ===== */
.shadow-sm {
    box-shadow: var(--fluent-shadow-4) !important;
}

.shadow {
    box-shadow: var(--fluent-shadow-8) !important;
}

.shadow-lg {
    box-shadow: var(--fluent-shadow-16) !important;
}

.rounded {
    border-radius: var(--fluent-radius-sm) !important;
}

.rounded-lg {
    border-radius: var(--fluent-radius-lg) !important;
}

.bg-primary {
    background-color: var(--fluent-primary) !important;
}

.bg-light {
    background-color: #FAF9F8 !important;
}

.text-primary {
    color: var(--fluent-primary) !important;
}

.text-secondary {
    color: #605E5C !important;
}

/* ===== GLOBAL ANIMATIONS ===== */
.fade {
    transition: opacity var(--fluent-duration-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collapse {
    transition: height var(--fluent-duration-normal) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 576px) {
    .btn {
        padding: 0.375rem 1rem;
        font-size: 0.8125rem;
    }

    .card-body {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* Добавьте в ваш CSS файл */
.figure {
    transition: transform 0.3s ease;
}

.figure:hover {
    transform: translateY(-5px);
}

.figure a {
    overflow: hidden;
    display: block;
    border-radius: 0.375rem;
}

.figure img {
    transition: transform 0.5s ease;
}

.figure:hover img {
    transform: scale(1.05);
}

.figure .badge {
    font-weight: 400;
}

/* Адаптация для маленьких экранов */
@media (max-width: 768px) {
    .figure img {
        height: 200px !important;
    }
}

/* ===== BACK TO TOP BUTTON - Fluent Style ===== */
#backToTop {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--fluent-shadow-8);
    border: none;
}

#backToTop:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--fluent-shadow-16);
    opacity: 1 !important;
}

#backToTop:active {
    transform: translateY(0) scale(0.95);
    transition-duration: 0.1s;
}

/* Показываем с плавной анимацией */
#backToTop.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: backToTopFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes backToTopFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0) scale(1);
    }
}

/* Стиль для мобильных устройств */
@media (max-width: 576px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    #backToTop i {
        font-size: 1.25rem;
    }
}
/* Стиль для "Скоро" */
.text-warning {
    color: #d39e00 !important;
}

/* Анимация для иконки "Скоро" */
.bi-hourglass-split {
    animation: hourglassPulse 2s ease-in-out infinite;
}

@keyframes hourglassPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Базовые стили */
.navbar-brand img {
    height: 30px;
    width: auto;
    transition: height 0.3s ease;
}

/* Для планшетов */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 26px;
    }
    
    .btn-primary {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Для телефонов */
@media (max-width: 576px) {
    .navbar-brand img {
        height: 20px;
    }
    
    .btn-primary {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .btn-primary i {
        font-size: 1rem;
    }
    
    /* Фикс для переполнения */
    .navbar .container {
        gap: 0.5rem;
    }
    
    .navbar-brand {
        max-width: 40%;
        overflow: hidden;
    }
}