:root {
    --ink: #14211f;
    --muted: #64736f;
    --page: #eef5f1;
    --surface: #ffffff;
    --surface-2: #f8fbf8;
    --line: #dce8e2;
    --tbk-red: #c83a32;
    --hex-amber: #f3bf72;
    --chemical-green: #25a878;
    --chemical-teal: #0f9f9a;
    --signal-blue: #2477b8;
    --warning: #f2a928;
    --danger: #d94841;
    --shadow: 0 18px 40px rgba(20, 33, 31, .10);
    --shadow-sm: 0 8px 22px rgba(20, 33, 31, .08);
    --sidebar: 292px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(37, 168, 120, .08), transparent 34%),
        linear-gradient(315deg, rgba(243, 191, 114, .13), transparent 34%),
        var(--page);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.login-shell {
    overflow-x: hidden;
}

.molecule-field {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: .62;
}

.molecule-field::before,
.molecule-field::after {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    background-image:
        linear-gradient(30deg, transparent 45%, rgba(15, 159, 154, .18) 46%, rgba(15, 159, 154, .18) 54%, transparent 55%),
        linear-gradient(150deg, transparent 45%, rgba(200, 58, 50, .13) 46%, rgba(200, 58, 50, .13) 54%, transparent 55%),
        linear-gradient(90deg, transparent 45%, rgba(243, 191, 114, .20) 46%, rgba(243, 191, 114, .20) 54%, transparent 55%);
    background-size: 112px 98px;
    transform: rotate(-8deg);
    animation: moleculeDrift 22s ease-in-out infinite alternate;
}

.molecule-field::before {
    top: -210px;
    right: -160px;
}

.molecule-field::after {
    left: -260px;
    bottom: -280px;
    transform: rotate(12deg);
    animation-delay: -8s;
}

.hex-chip {
    width: 42px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--hex-amber);
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    box-shadow: inset 0 0 0 2px rgba(20, 33, 31, .08);
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    position: relative;
}

.login-panel {
    width: min(1060px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(220, 232, 226, .92);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(16px);
    animation: riseIn .58s ease both;
}

.login-brand {
    position: relative;
    min-height: 560px;
    padding: 44px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(20, 33, 31, .84), rgba(15, 81, 76, .86)),
        linear-gradient(90deg, rgba(200, 58, 50, .34), rgba(37, 168, 120, .22));
}

.login-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, transparent 46%, rgba(255, 255, 255, .08) 47%, rgba(255, 255, 255, .08) 53%, transparent 54%),
        linear-gradient(150deg, transparent 46%, rgba(255, 255, 255, .07) 47%, rgba(255, 255, 255, .07) 53%, transparent 54%);
    background-size: 86px 74px;
    mask-image: linear-gradient(90deg, black, transparent 88%);
}

.brand-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.brand-logo,
.sidebar-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.brand-logo {
    width: 138px;
    height: 104px;
    padding: 10px;
    margin-bottom: 26px;
}

.brand-logo img,
.sidebar-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-eyebrow,
.section-kicker {
    color: var(--chemical-teal);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.login-brand .brand-eyebrow {
    color: var(--hex-amber);
}

.brand-title {
    max-width: 610px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    line-height: .98;
    font-weight: 850;
    letter-spacing: 0;
}

.brand-copy {
    max-width: 560px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.02rem;
}

.brand-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: auto;
}

.brand-point {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    border-radius: var(--radius);
}

.brand-point i {
    color: var(--hex-amber);
}

.login-form-wrap {
    padding: 42px;
    background: var(--surface);
}

.form-title {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 0;
}

.credential-box,
.setup-box,
.notice-box {
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.credential-box {
    font-size: .9rem;
}

.setup-box {
    color: #73510f;
    border-color: rgba(242, 169, 40, .36);
    background: rgba(242, 169, 40, .12);
}

.app-shell {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    display: flex;
    min-height: 100vh;
}

.app-layout {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    padding: 18px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(20, 33, 31, .98), rgba(11, 55, 54, .98)),
        linear-gradient(90deg, rgba(200, 58, 50, .18), rgba(37, 168, 120, .12));
    z-index: 1040;
    overflow-y: auto;
    transition: transform .26s ease;
}

.app-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(30deg, transparent 46%, rgba(255, 255, 255, .06) 47%, rgba(255, 255, 255, .06) 53%, transparent 54%),
        linear-gradient(150deg, transparent 46%, rgba(255, 255, 255, .05) 47%, rgba(255, 255, 255, .05) 53%, transparent 54%);
    background-size: 82px 72px;
    opacity: .62;
    pointer-events: none;
}

.sidebar-inner {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-logo {
    width: 72px;
    height: 56px;
    padding: 5px;
    flex: 0 0 auto;
}

.sidebar-title {
    font-weight: 850;
    font-size: 1.1rem;
    margin: 0;
}

.sidebar-subtitle {
    color: rgba(255, 255, 255, .66);
    font-size: .8rem;
}

.nav-section {
    margin: 20px 8px 8px;
    color: rgba(255, 255, 255, .48);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 4px 0;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.sidebar-link i {
    width: 22px;
    color: var(--hex-amber);
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, .13);
    transform: translateX(3px);
}

.sidebar-link.active {
    box-shadow: inset 3px 0 0 var(--tbk-red);
}

.sidebar-user {
    margin-top: auto;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .12);
}

.app-main {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 100vh;
    margin-left: var(--sidebar);
    overflow-x: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 16px clamp(16px, 3vw, 34px);
    background: rgba(238, 245, 241, .88);
    border-bottom: 1px solid rgba(220, 232, 226, .88);
    backdrop-filter: blur(14px);
}

.content-area {
    padding: 26px clamp(16px, 3vw, 34px) 44px;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    font-weight: 850;
    letter-spacing: 0;
}

.page-heading p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--muted);
}

.metric-card,
.surface-panel,
.table-panel,
.action-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow-sm);
}

.metric-card {
    position: relative;
    min-height: 154px;
    padding: 18px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.metric-card::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -38px;
    width: 122px;
    height: 104px;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    background: rgba(243, 191, 114, .28);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.metric-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: var(--radius);
    background: var(--chemical-teal);
}

.metric-icon.red {
    background: var(--tbk-red);
}

.metric-icon.green {
    background: var(--chemical-green);
}

.metric-icon.amber {
    background: var(--warning);
}

.metric-value {
    margin-top: 16px;
    font-size: 2.15rem;
    font-weight: 850;
    line-height: 1;
}

.metric-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: .92rem;
}

.surface-panel,
.table-panel,
.action-panel {
    padding: 18px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 1.02rem;
    font-weight: 800;
}

.panel-title i {
    color: var(--chemical-teal);
}

.table-panel {
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    letter-spacing: 0;
}

.table tbody td {
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: background .18s ease;
}

.table-hover tbody tr:hover {
    background: rgba(37, 168, 120, .08);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-critical,
.status-cancelled {
    color: #8f1f1a;
    background: rgba(217, 72, 65, .14);
}

.status-normal,
.status-delivered {
    color: #126047;
    background: rgba(37, 168, 120, .16);
}

.status-pending {
    color: #795210;
    background: rgba(242, 169, 40, .18);
}

.status-shipped {
    color: #15587e;
    background: rgba(36, 119, 184, .15);
}

.progress-thin {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #e7efea;
}

.progress-thin span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--chemical-green), var(--chemical-teal));
    animation: growBar .7s ease both;
}

.progress-thin.danger span {
    background: linear-gradient(90deg, var(--tbk-red), var(--warning));
}

.btn-primary,
.btn-success {
    --bs-btn-bg: var(--chemical-teal);
    --bs-btn-border-color: var(--chemical-teal);
    --bs-btn-hover-bg: #0b827e;
    --bs-btn-hover-border-color: #0b827e;
}

.btn-danger {
    --bs-btn-bg: var(--tbk-red);
    --bs-btn-border-color: var(--tbk-red);
}

.btn-outline-primary {
    --bs-btn-color: var(--chemical-teal);
    --bs-btn-border-color: var(--chemical-teal);
    --bs-btn-hover-bg: var(--chemical-teal);
    --bs-btn-hover-border-color: var(--chemical-teal);
}

.form-control,
.form-select,
.btn,
.dropdown-menu,
.modal-content,
.alert {
    border-radius: var(--radius);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--chemical-teal);
    box-shadow: 0 0 0 .2rem rgba(15, 159, 154, .18);
}

.modal-header {
    border-bottom-color: var(--line);
}

.modal-footer {
    border-top-color: var(--line);
}

.report-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.report-action i {
    color: var(--tbk-red);
}

.print-report {
    background: #ffffff;
}

.print-wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 34px;
}

.print-header {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 2px solid var(--line);
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.print-header img {
    width: 96px;
    height: auto;
}

[data-animate] {
    opacity: 0;
    transform: translateY(16px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .54s ease, transform .54s ease;
}

.sidebar-backdrop {
    display: none;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moleculeDrift {
    from {
        transform: translate3d(0, 0, 0) rotate(-8deg);
    }
    to {
        transform: translate3d(34px, 28px, 0) rotate(-3deg);
    }
}

@keyframes growBar {
    from {
        width: 0;
    }
}

@media (max-width: 991.98px) {
    .login-panel {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: auto;
        padding: 34px;
    }

    .brand-points {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1039;
        background: rgba(20, 33, 31, .42);
    }

    .sidebar-backdrop.is-open {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .topbar {
        min-height: 68px;
    }
}

@media (max-width: 575.98px) {
    .login-form-wrap,
    .login-brand {
        padding: 24px;
    }

    .brand-logo {
        width: 112px;
        height: 84px;
    }

    .page-heading {
        display: block;
    }

    .content-area {
        padding-bottom: 28px;
    }

    .metric-card {
        min-height: 132px;
    }

    .table-panel,
    .surface-panel,
    .action-panel {
        padding: 14px;
    }
}

/* Animations for Login Screen */
@keyframes loginLogoBounce {
    0% { transform: scale(0.8) translateY(-30px); opacity: 0; }
    50% { transform: scale(1.05) translateY(5px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes loginTextFadeUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes loginFormSlideUp {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.login-logo-anim {
    animation: loginLogoBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.login-text-anim {
    animation: loginTextFadeUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.login-form-anim {
    animation: loginFormSlideUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.2s;
}

@media print {
    .app-sidebar,
    .topbar,
    .sidebar-backdrop,
    .no-print,
    .btn {
        display: none !important;
    }

    body,
    .app-main,
    .content-area {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .surface-panel,
    .table-panel,
    .metric-card {
        box-shadow: none;
        border-color: #cccccc;
    }
}

/* ==================== ENHANCED ANIMATIONS ==================== */

/* Entrance Animations */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInRotate {
    0% {
        opacity: 0;
        transform: rotate(-5deg) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 159, 154, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(15, 159, 154, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(15, 159, 154, 0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(15, 159, 154, 0.4);
    }
    50% {
        box-shadow: 0 0 20px rgba(15, 159, 154, 0.8);
    }
}

@keyframes swing {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Page Elements Animations */
.app-sidebar {
    animation: slideInFromLeft 0.5s ease both;
}

.topbar {
    animation: slideInFromTop 0.5s ease both;
}

.page-heading {
    animation: slideInFromTop 0.6s ease both;
    animation-delay: 0.1s;
}

.page-heading h1 {
    animation: slideInFromLeft 0.7s ease-out both;
    animation-delay: 0.15s;
}

.page-heading p {
    animation: slideInFromLeft 0.7s ease-out both;
    animation-delay: 0.25s;
}

/* Metric Cards Animation */
.metric-card {
    animation: fadeInScale 0.6s ease-out both;
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(15, 159, 154, 0.2);
}

.metric-card:active {
    transform: translateY(-4px) scale(1.01);
}

.metric-icon {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.metric-card:hover .metric-icon {
    animation: bounce 0.6s ease infinite;
}

.metric-value {
    animation: slideInFromBottom 0.7s ease-out both;
    animation-delay: 0.3s;
}

/* Panel Animations */
.surface-panel,
.table-panel,
.action-panel {
    animation: fadeInScale 0.6s ease-out both;
    transition: all 0.3s ease;
}

.surface-panel { animation-delay: 0.2s; }
.table-panel { animation-delay: 0.3s; }
.action-panel { animation-delay: 0.4s; }

.surface-panel:hover,
.table-panel:hover,
.action-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 33, 31, 0.15);
}

.panel-title {
    animation: slideInFromLeft 0.6s ease-out both;
    animation-delay: 0.2s;
}

.panel-title i {
    animation: swing 2s ease-in-out infinite;
}

/* Table Row Animations */
.table tbody tr {
    animation: fadeInScale 0.5s ease-out both;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.table tbody tr:nth-child(5) { animation-delay: 0.25s; }

.table tbody tr:hover {
    transform: scale(1.01) translateX(4px);
}

.table tbody tr td {
    transition: color 0.2s ease;
}

.table tbody tr:hover td {
    color: var(--ink);
}

/* Status Pill Animation */
.status-pill {
    animation: fadeInScale 0.5s ease-out both;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-pill::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.4s ease;
}

.status-pill:hover::before {
    left: 100%;
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
}

.btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Form Elements Animation */
.form-control,
.form-select {
    transition: all 0.3s ease;
    animation: fadeInScale 0.5s ease-out both;
}

.form-control:focus,
.form-select:focus {
    transform: scale(1.02);
    box-shadow: 0 0 0 .3rem rgba(15, 159, 154, 0.25);
}

/* Alert Animation */
.alert {
    animation: slideInFromTop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Badge and Tags Animation */
.badge {
    animation: fadeInScale 0.4s ease-out both;
    transition: all 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Sidebar Links Hover */
.sidebar-link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
    left: 0;
}

/* Dropdown Menu Animation */
.dropdown-menu {
    animation: slideInFromTop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transform-origin: top center;
}

.dropdown-menu .dropdown-item {
    transition: all 0.2s ease;
    animation: slideInFromLeft 0.3s ease-out both;
}

.dropdown-menu .dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu .dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu .dropdown-item:nth-child(3) { animation-delay: 0.15s; }

.dropdown-menu .dropdown-item:hover {
    transform: translateX(4px);
}

/* Modal Animation */
.modal.show .modal-dialog {
    animation: slideInFromBottom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-header {
    animation: slideInFromTop 0.4s ease-out both;
}

.modal-body {
    animation: fadeInScale 0.5s ease-out both;
    animation-delay: 0.1s;
}

.modal-footer {
    animation: slideInFromBottom 0.4s ease-out both;
    animation-delay: 0.15s;
}

/* Icon Animation */
i.animated-icon {
    display: inline-block;
    animation: swing 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.btn:hover i.animated-icon,
.sidebar-link:hover i.animated-icon {
    animation: heartbeat 0.6s ease infinite;
}

/* Loading Shimmer */
.shimmer-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Progress Bar Animation Enhancement */
.progress-thin {
    animation: slideInFromLeft 0.6s ease-out both;
}

.progress-thin span {
    animation: growBar 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Tooltip Enhancement */
.tooltip-inner {
    animation: fadeInScale 0.3s ease-out both;
}

/* Staggered List Items */
.list-group-item {
    animation: slideInFromLeft 0.4s ease-out both;
    transition: all 0.3s ease;
}

.list-group-item:nth-child(1) { animation-delay: 0.05s; }
.list-group-item:nth-child(2) { animation-delay: 0.1s; }
.list-group-item:nth-child(3) { animation-delay: 0.15s; }
.list-group-item:nth-child(4) { animation-delay: 0.2s; }
.list-group-item:nth-child(5) { animation-delay: 0.25s; }

.list-group-item:hover {
    transform: translateX(6px);
}

/* Responsive Animation Adjustments */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
