﻿\
/* Force Arabic fonts globally */
* {
    font-family: 'Almarai', 'Cairo', 'Changa', sans-serif !important;
}

/* Optional: Define specific styles for different font weights */
html, body {
    font-family: 'Almarai', sans-serif !important;
    font-weight: 400 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif !important;
    font-weight: 900 !important; /* Extra bold for headings */
}

p, span, div, a, button, input, textarea {
    font-family: 'Changa', sans-serif !important;
    font-weight: 400 !important;
}


a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    list-style: none;
    margin: 5px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

    .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.1);
    }

.dropdown-divider {
    border-top: 1px solid #ccc;
    margin: 5px 0;
}

.dropdown-item.text-danger {
    font-weight: bold;
    color: red;
}

@media print {
    /* 🖨️ A4 Full Page Setup */
    @page {
        size: A4 portrait;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ✅ Reset Everything for Full Page */
    body, html {
        font-family: 'Almarai', sans-serif !important;
        direction: rtl;
        text-align: right;
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        height: 100%;
    }

    /* 🛑 Hide All Non-Report Elements */
    .no-print, button, .btn, nav, footer, aside, .navbar, .sidebar {
        display: none !important;
        visibility: hidden !important;
    }

    /* ✅ Full-Screen Report Without Padding */
    #printArea {
        width: 100%;
        height: 100%;
        border: none;
        box-shadow: none;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important; /* ✅ Ensure content is visible */
    }



    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
    }

        table th, table td {
            border: 1px solid black;
            padding: 8px;
            text-align: right;
            background: white !important; /* ✅ Ensure table background is visible */
        }

        table thead th {
            background-color: #f8f9fa !important;
            font-weight: bold;
        }
    /* ✅ Keep Footer in Two Columns */
    .footer-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px;
    }

    .footer-item {
        flex: 1;
        text-align: right;
        font-size: 16px;
        font-weight: bold;
        padding: 10px;
    }

    /* ✅ Three Columns Layout for Date Info */
    .date-info-container {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
    }

    .date-item {
        flex: 1;
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        padding: 5px;
    }
}


/* ✅ Keep Footer in Two Columns */
.footer-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.footer-item {
    flex: 1;
    text-align: right;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
}

/* ✅ Three Columns Layout for Date Info */
.date-info-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.date-item {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 5px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}
/* 🌟 تنسيق الـ Tooltip */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

    /* 🟢 محتوى الـ Tooltip */
    .tooltip-container .tooltip-text {
        visibility: hidden;
        width: 220px;
        background-color: rgba(0, 0, 0, 0.8);
        color: #fff;
        text-align: center;
        border-radius: 5px;
        padding: 8px;
        position: absolute;
        z-index: 100;
        bottom: 125%; /* عرض الـ Tooltip أعلى العنصر */
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        font-size: 14px;
    }

        /* 🔻 السهم الصغير */
        .tooltip-container .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%; /* يظهر تحت الـ Tooltip */
            left: 50%;
            margin-left: -6px;
            border-width: 6px;
            border-style: solid;
            border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
        }

    /* 🟢 إظهار الـ Tooltip عند تمرير الماوس */
    .tooltip-container:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }



.file-upload-container {
    text-align: center;
    margin-top: 20px;
}

.file-upload-label {
    display: inline-block;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

    .file-upload-label:hover {
        background: linear-gradient(135deg, #45a049, #1b5e20);
        transform: scale(1.05);
    }

.hidden-file-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}


@media print {
    body {
        margin: 0;
        padding: 0;
        font-size: 12pt;
    }

    .no-print {
        display: none !important;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    th, td {
        padding: 6px;
        border: 1px solid #000;
        text-align: right;
    }

    h2 {
        text-align: center;
        margin-bottom: 20px;
    }
}


@media print {
    body {
        font-family: 'Cairo', sans-serif;
        direction: rtl;
        font-size: 12pt;
    }

    .no-print, .btn {
        display: none !important;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    th, td {
        border: 1px solid #000;
        padding: 5px;
        text-align: right;
    }

    h2, p {
        text-align: center;
        margin-bottom: 20px;
    }
}


.submenu {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding-left: 1.5rem;
    border-left: 2px solid #eee;
}

.table-dark {
    color: #fff !important;
    background-image: linear-gradient( 180deg, #085a9b 0%, #0a71c0 60%, #1ea9f1 100% ) !important;
}

    .table-dark th {
        background-color: transparent !important;
        background-image: none !important;
    }

.blurred-table {
    filter: blur(2px);
    pointer-events: none;
    opacity: 0.5;
    transition: all 0.3s ease-in-out;
}

.loading-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 15px;
}





.smart-card {
    border-radius: 1.25rem;
    padding: 1rem !important; /* Compact vertical padding */
}

.modern-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 60%, #e3effd 100%);
    border: none;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(60,130,246,0.10);
}

    .modern-action-btn.btn-success {
        color: #198754;
        background: linear-gradient(135deg, #e6f9ec 60%, #b6f0c6 100%);
    }

    .modern-action-btn.btn-primary {
        color: #0d6efd;
        background: linear-gradient(135deg, #e6f0fd 60%, #b6d6fa 100%);
    }

    .modern-action-btn:hover, .modern-action-btn:focus {
        box-shadow: 0 4px 16px rgba(60,130,246,0.15);
        transform: translateY(-2px) scale(1.05);
        color: #fff !important;
    }

.form-label {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.btn-lg {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
}

.rounded-pill {
    border-radius: 2rem !important;
}

hr {
    border-top: 2px solid #e3effd;
    opacity: 0.7;
}

.btn-xs {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 2rem !important;
}


.journal-card {
    background: linear-gradient(120deg, #f8fafc 70%, #e3effd 100%);
    border-radius: 1.25rem;
    transition: box-shadow 0.2s;
}

    .journal-card:hover {
        box-shadow: 0 8px 32px rgba(60, 130, 246, 0.10);
    }

.journal-table th, .journal-table td {
    vertical-align: middle !important;
    font-size: 1rem;
}

.journal-table thead th {
    background: #e3effd;
    font-weight: 600;
    border-top: none;
}

.journal-table tbody tr {
    transition: background 0.2s;
}

    .journal-table tbody tr:hover {
        background: #f1f8ff;
    }

.btn.rounded-circle {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.modern-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #f8fafc 60%, #e3effd 100%);
    border: none;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(60,130,246,0.10);
    position: relative;
}

    .modern-action-btn.btn-success {
        color: #198754;
        background: linear-gradient(135deg, #e6f9ec 60%, #b6f0c6 100%);
    }

    .modern-action-btn.btn-primary {
        color: #0d6efd;
        background: linear-gradient(135deg, #e6f0fd 60%, #b6d6fa 100%);
    }

    .modern-action-btn:hover, .modern-action-btn:focus {
        box-shadow: 0 4px 16px rgba(60,130,246,0.15);
        transform: translateY(-2px) scale(1.05);
        color: #fff !important;
    }

.action-label {
    letter-spacing: 0.01em;
}


.modern-breadcrumb {
    background: none;
    font-size: 1.05rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(60,130,246,0.04);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-separator {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #343a40;
}


.modern-journal-card {
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(60,130,246,0.07);
}

.modern-table th, .modern-table td {
    vertical-align: middle !important;
    font-size: 1rem;
}

.modern-table thead th {
    background: #e3effd;
    font-weight: 600;
    border-top: none;
}

.modern-table tbody tr:hover {
    background: #f1f8ff;
}

.btn.rounded-circle {
    border-radius: 50% !important;
}

.btn.rounded-pill, .form-control.rounded-pill, .form-select.rounded-pill {
    border-radius: 2rem !important;
}


.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    margin: 1rem 0 0.5rem 0;
}

.page-btn {
    background: #f7f9fb;
    border: none;
    color: #2563c9;
    font-weight: 600;
    font-size: 1.02rem;
    border-radius: 0.7rem;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

    .page-btn.active,
    .page-btn:focus,
    .page-btn:hover {
        background: linear-gradient(90deg, #2563c9 0%, #3a7afe 60%, #61a7f6 100%);
        color: #fff;
    }

@media (max-width: 600px) {
    .table-card {
        padding: 0.5rem 0.2rem 0.2rem 0.2rem;
        border-radius: 0.7rem;
    }

    .data-table th, .data-table td {
        padding: 0.6rem 0.4rem;
        font-size: 0.97rem;
    }

    .pagination {
        justify-content: center;
    }
}


.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 1050; /* Above other content */
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.fullscreen-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e3e3e3;
    position: sticky;
    top: 0;
    z-index: 1;
}


.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #f8f9fa;
    z-index: 1050;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation-duration: 0.4s;
}

.fullscreen-header {
    background: #fff;
    border-bottom: 1px solid #e3e3e3;
    position: sticky;
    top: 0;
    z-index: 1;
}

.card {
    border-radius: 16px;
    margin-bottom: 1rem;
}

.card-header {
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}

.card-body {
    border-radius: 0 0 16px 16px;
}

@media (max-width: 991.98px) {
    .fullscreen-overlay .row > [class^="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.card {
    border-radius: 16px;
    margin-bottom: 1rem;
}

.card-header {
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: none;
    border-radius: 16px 16px 0 0;
}

.card-body {
    border-radius: 0 0 16px 16px;
}

@media (max-width: 991.98px) {
    .row > [class^="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* Validation Styling (Bootstrap-friendly) */
.validation-message {
    color: #dc3545; /* Bootstrap danger red */
    font-size: 0.875rem; /* Small text */
    margin-top: 4px;
    font-weight: 500;
    display: block;
}

/* Optional: Make required inputs stand out */
input:required:invalid,
select:required:invalid {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Show a red border if missing */
input.input-validation-error,
select.input-validation-error {
    border-color: #dc3545;
}

/* Optional: Improve alert visuals */
.alert {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.input-animate {
    transition: box-shadow 0.2s;
}

    .input-animate:focus {
        box-shadow: 0 0 8px #66b3ff;
        border-color: #66b3ff;
    }

.btn-animate {
    transition: transform 0.1s;
}

    .btn-animate:active {
        transform: scale(0.96);
    }

.sort-animate {
    transition: transform 0.3s;
}

.table-danger.animate__flash {
    animation: flash 0.8s;
}

@keyframes flash {
    from {
        background-color: #ffcccc;
    }

    to {
        background-color: inherit;
    }
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    border-radius: 1.5rem;
    background: #fff;
    border: 1px solid #f1f1f5;
    transition: box-shadow .15s;
}

.filter-input {
    min-width: 140px;
    max-width: 180px;
    transition: box-shadow .15s, border-color .15s;
}

    .filter-input:focus {
        box-shadow: 0 0 0 0.1rem #1697f6;
        border-color: #1697f6;
        background: #fcfcff;
    }

.btn-modern {
    border-radius: 1rem;
    font-weight: 500;
    box-shadow: none;
    transition: background .13s, box-shadow .13s;
}

    .btn-modern:focus, .btn-modern:hover {
        box-shadow: 0 3px 14px rgba(50,130,230,0.08);
        filter: brightness(1.06);
    }
/* Responsive for mobile */
@media (max-width: 767px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: .7rem;
        padding: 1.2rem .7rem;
    }

    .btn-modern {
        width: 100%;
        margin-left: 0 !important;
    }

    .filter-input {
        width: 100%;
        max-width: 100%;
    }
}

.custom-alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 350px;
    max-width: 90%;
    font-weight: 600;
    font-size: 16px;
    animation: fadeInZoom 0.6s ease-in-out;
}

/* Animations */
@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.customer-card {
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #eee !important;
}

    .customer-card:hover {
        background-color: #f8f9fa;
        transform: translateY(-2px);
        cursor: pointer;
    }

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}



/* ... your existing .modern-header styles ... */
/* ====================================================== */
/*      STYLES FOR THE FLOATING CONTACT BUTTON            */
/* ====================================================== */
.contact-fab {
    position: fixed;
    bottom: 25px;
    /* Adjust 'right' or 'left' based on layout direction */
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Ensure it's above most other content */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    /* Initial state for entry animation */
    opacity: 0;
    animation: fab-enter 0.5s 0.5s ease-out forwards; /* Animate in after 0.5s delay */
}

/* In RTL mode, position the button on the left */
[dir="rtl"] .contact-fab {
    right: auto;
    left: 25px;
}

.contact-fab:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    cursor: pointer;
}

/* The pulsing glow effect */
.contact-fab .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: inherit;
    z-index: -1; /* Places the pulse behind the icon */
    animation: pulse-glow 2.5s infinite ease-out;
}

/* Animation for the button entering the screen */
@keyframes fab-enter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animation for the pulsing glow */
@keyframes pulse-glow {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.8);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}


.readonly-select {
    pointer-events: none; /* يمنع التفاعل */
    background-color: #fff; /* يخلي الخلفية بيضاء */
    color: #000; /* لون النص */
    -webkit-appearance: none; /* يخفي السهم في كروم وسفاري */
    -moz-appearance: none; /* يخفي السهم في فايرفوكس */
    appearance: none; /* يخفي السهم في باقي المتصفحات */
    background-image: none; /* يخفي السهم الافتراضي */
}


.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 10; /* يخلي الهيدر فوق */
    background-image: linear-gradient( color: #fff !important;
    border-color: #4d5154 !important;
}

/* خلفية الهيدر بالـ gradient */
.card-header-gradient {
    background-image: linear-gradient( color: #fff !important;
    border-radius: 0.5rem;
}

/* مؤثرات الفتح/الإغلاق */
.custom-collapse.collapse:not(.show) {
    display: block;
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.5s ease, opacity 0.5s ease;
}

.custom-collapse.collapse.show {
    height: auto;
    opacity: 1;
    transition: height 0.5s ease, opacity 0.5s ease;
}

:root {
    --primary-color: #0c75c0;
    --primary-hover-color: #0c75c0;
    --background-gradient: linear-gradient(135deg, #0c75c0 0%, #0c75c0 100%);
    --text-color: #333;
    --text-color-light: #f4f4f4;
    --input-bg: #f0f0f0;
    --input-border: #e0e0e0;
    --input-focus-border: var(--primary-color);
    --card-bg: #ffffff;
    --error-color: #d9534f;
    --body-bg: #f8f9fa;
}

body {
    background-color: var(--body-bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* --- Welcome Panel (Left Side) --- */
.welcome-panel {
    width: 50%;
    background: var(--background-gradient);
    color: var(--text-color-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    transition: all 0.5s ease;
}

.welcome-content {
    text-align: center;
    max-width: 400px;
}

    .welcome-content .logo {
        max-width: 100px;
        margin-bottom: 2rem;
        filter: brightness(0) invert(1);
    }

    .welcome-content h1 {
        font-weight: 700;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .welcome-content p {
        font-size: 1.1rem;
        opacity: 0.9;
    }

/* --- Login Panel (Right Side) --- */
.login-panel {
    width: 50%;
    background-color: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    transition: all 0.5s ease;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
}

.form-title {
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #888;
    margin-bottom: 2rem;
}

/* --- Form Elements Styling --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: #555;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Padding for icon */
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background-color: var(--input-bg);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: var(--input-focus-border);
        box-shadow: 0 0 0 3px rgba(106, 90, 249, 0.2);
        background-color: var(--card-bg);
    }

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
}

.validation-message {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

    .forgot-password:hover {
        color: var(--primary-hover-color);
        text-decoration: underline;
    }

/* --- Login Button --- */
.btn-login {
    background: var(--background-gradient);
    color: var(--text-color-light);
    border: none;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .btn-login:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        color: var(--text-color-light);
    }

    .btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

    .btn-login .spinner-border {
        width: 1.2rem;
        height: 1.2rem;
    }

/* --- Social Login --- */
.social-login-divider {
    margin: 2rem 0;
    text-align: center;
    color: #aaa;
    display: flex;
    align-items: center;
}

    .social-login-divider::before,
    .social-login-divider::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid #e0e0e0;
    }

    .social-login-divider span {
        padding: 0 1rem;
    }

.social-login-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-social {
    background: transparent;
    border: 1px solid var(--input-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .btn-social:hover {
        background-color: #f5f5f5;
        border-color: #ccc;
    }

    .btn-social img {
        width: 24px;
        height: 24px;
    }


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .welcome-panel {
        display: none; /* Hide the welcome panel on smaller screens */
    }

    .login-panel {
        width: 100%;
        min-height: 100vh;
        padding: 20px;
    }
}

@page {
    size: A4;
    margin: 25mm 15mm 20mm 15mm;
}

body {
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    background: #f6f8fa;
    margin: 0;
    padding: 0;
    direction: rtl;
}

.invoice-container {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 0;
}
/* Header layout */
.invoice-header {
    border-bottom: 2px solid #1d7fa3;
    padding: 20px 40px 12px 40px;
}

.header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.company-data {
    text-align: right;
    color: #1d7fa3;
    font-size: 15px;
    line-height: 1.7;
    min-width: 210px;
}

    .company-data strong {
        font-size: 20px;
        color: #1d7fa3;
    }

.company-logo {
    text-align: left;
    min-width: 110px;
}

    .company-logo img {
        width: 190px;
        height: 130px;
        object-fit: contain;
        background: #fff;
        border-radius: 8px;
        border: 2px solid #e0e4ea;
        padding: 4px;
    }

.invoice-title {
    text-align: center;
    font-size: 20px;
    color: #1d7fa3;
    font-weight: 700;
    margin: 10px 0 0 0;
    letter-spacing: 1px;
}
/* Center info under title */
.center-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0 0 0;
}

.center-info-content {
    background: #f2f6fa;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 16px;
    color: #1d7fa3;
    font-weight: 600;
}
/* Body 3-column row (Flex for screen) */
.body-row {
    display: flex;
    gap: 18px;
}

.body-col {
    flex: 1 1 0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px 14px;
    min-height: 170px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .body-col h4 {
        margin: 0 0 10px 0;
        color: #1d7fa3;
        font-size: 17px;
        font-weight: 700;
    }

    .body-col .qr-img {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

        .body-col .qr-img img {
            width: 110px;
            height: 110px;
            border: 1px solid #e0e4ea;
            border-radius: 8px;
            background: #fff;
            padding: 7px;
        }
/* Invoice items table */
.items {
    width: 100%;
    border-collapse: collapse;
}

    .items th, .items td {
        border: 1px solid #e0e4ea;
        padding: 10px 7px;
        text-align: center;
        font-size: 15px;
    }

    .items th {
        background: #e9f1f7;
        color: #1d7fa3;
        font-weight: 700;
    }
/* Totals */
.totals {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

    .totals td {
        padding: 9px 10px;
        border: 1px solid #e0e4ea;
        background: #f2f6fa;
    }

        .totals td:first-child {
            font-weight: 700;
            text-align: right;
        }

        .totals td:last-child {
            text-align: left;
            color: #1d7fa3;
            font-weight: 700;
        }
/* Bank info */
.bank-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px 20px;
    color: #1d7fa3;
    font-size: 15px;
}

    .bank-info strong {
        color: #1d7fa3;
        font-size: 17px;
    }
/* Footer */
.invoice-footer {
    border-top: 2px solid #1d7fa3;
    padding: 14px 32px 8px 32px;
    text-align: center;
    color: #6c7a89;
    font-size: 14px;
}

@media print {
    body {
        background: #fff !important;
    }

    .invoice-container {
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        max-width: 100%;
        padding: 0;
    }

    .invoice-header, .invoice-footer {
        page-break-inside: avoid;
    }
    /* تحويل الصف إلى جدول للطباعة */
    .body-row {
        display: table !important;
        width: 100% !important;
        table-layout: fixed !important;
        gap: 0 !important;
        margin: 32px 0 18px 0;
    }

    .body-col {
        display: table-cell !important;
        width: 33.33% !important;
        vertical-align: top !important;
        border-radius: 0 !important;
        min-height: 120px !important;
        background: #f8fafc !important;
        padding: 12px 8px !important;
        box-sizing: border-box;
    }
}

@media (max-width: 900px) {
    .invoice-container {
        max-width: 100%;
    }

    .invoice-header, .invoice-footer {
        padding: 10px;
    }

    .center-info-content {
        padding: 8px 10px;
    }

    .body-row {
        flex-direction: column;
        gap: 10px;
    }
}
/* شريط الأدوات Responsive */
.report-toolbar .input-group .form-control {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .report-toolbar {
        margin-top: .25rem;
    }

        .report-toolbar .btn {
            width: 100%;
        }

        .report-toolbar .input-group {
            width: 100% !important;
        }
}

/* رأس الجدول يثبت عند السحب داخل .table-responsive */
.table-responsive .sticky-head th {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* لا يلفّ النص داخل الخلايا على الموبايل — للسحب الأفقي */
.nowrap-cells td, .nowrap-cells th {
    white-space: nowrap;
}

/* أيقونات الأكشن تكون صغيرة ومتماسكة على الموبايل */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.actions-col {
    min-width: 200px;
}
/* عشان ما تتكدّس الأزرار */

/* إشارة أن الجدول قابل للسحب على الموبايل */
.mobile-shadow {
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.04);
}

@media (max-width: 575.98px) {
    .mobile-shadow {
        border-radius: .75rem;
    }
}

/* مؤشر الأعمدة القابلة للفرز */
.sortable {
    cursor: pointer;
}

    .sortable:hover {
        filter: brightness(1.03);
    }

.fas.fa-wallet {
    font-size: 16px;
}


/* ===== Wallet Dropdown (high-specificity, RTL/LTR) ===== */
.modern-header .wallet-dropdown .btn {
    background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
    border: 1px solid #e6eef7 !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 18px rgba(8,90,155,.10) !important;
    padding-inline: .9rem 1rem !important; /* works both RTL/LTR */
    transition: box-shadow .2s ease, transform .12s ease, border-color .2s ease !important;
}

    .modern-header .wallet-dropdown .btn:hover {
        box-shadow: 0 10px 24px rgba(30,169,241,.18), inset 0 0 0 1px rgba(30,169,241,.22) !important;
        transform: translateY(-1px);
        border-color: rgba(30,169,241,.28) !important;
    }

    .modern-header .wallet-dropdown .btn i {
        font-size: 16px;
        margin-inline-end: .5rem;
        color: #0b72c5;
        transition: transform .18s ease;
    }

    .modern-header .wallet-dropdown .btn:hover i {
        transform: translateY(-1px);
    }

    .modern-header .wallet-dropdown .btn .fw-semibold {
        font-variant-numeric: tabular-nums;
        letter-spacing: .2px;
    }

/* Pending badge + pulse */
.modern-header .wallet-dropdown .badge {
    position: relative;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(255,193,7,.35);
}

    .modern-header .wallet-dropdown .badge::after {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 999px;
        border: 2px solid rgba(255,193,7,.45);
        animation: wd-pulse 1.6s infinite ease-out;
    }

@keyframes wd-pulse {
    0% {
        transform: scale(.8);
        opacity: .7
    }

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

/* Dropdown menu entrance */
.modern-header .wallet-dropdown .dropdown-menu {
    border: 1px solid #e9eff7 !important;
    border-radius: 14px !important;
    padding: .5rem !important;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(10,113,192,.12) !important;
    transform-origin: top end; /* LTR */
    opacity: 0;
    transform: translateY(6px) scale(.98);
    transition: opacity .18s ease, transform .18s ease;
}

.iltz-layout[dir="rtl"] .wallet-dropdown .dropdown-menu {
    transform-origin: top start;
}
/* RTL */
.modern-header .wallet-dropdown .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Items */
.modern-header .wallet-dropdown .dropdown-item {
    border-radius: 10px;
    padding: .55rem .7rem;
    transition: background .15s ease, transform .15s ease;
}

    .modern-header .wallet-dropdown .dropdown-item:hover {
        background: linear-gradient(90deg, rgba(30,169,241,.08), transparent);
        transform: translateX(.5px);
    }

.iltz-layout[dir="rtl"] .wallet-dropdown .dropdown-item:hover {
    transform: translateX(-.5px);
}

.modern-header .wallet-dropdown .dropdown-item i {
    margin-inline-end: .45rem;
    opacity: .9;
}

.modern-header .wallet-dropdown .dropdown-divider {
    margin: .4rem 0;
    border-top: 1px dashed #e6edf6;
}

/* (اختياري) Debug سريع لو حابب تتأكد إن الCSS ماسك: */
/* .wallet-dropdown { outline: 2px dashed #1ea9f1; } */
:root {
    --je-bg: #ffffff;
    --je-ink: #0b172a;
    --je-muted: #5b6b7a;
    --je-line: #e8eef6;
    --je-accent: #1d7fa3;
    --je-head: #f5f9fe;
}

/* Container */
.je-doc {
    max-width: 900px;
    margin: 24px auto;
    background: var(--je-bg);
    color: var(--je-ink);
    padding: 24px 28px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(8, 90, 155, .08);
}

/* Header */
.je-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--je-line);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.je-brand-name {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .2px;
}

.je-meta {
    color: var(--je-muted);
    margin-top: 6px;
    display: grid;
    gap: 2px;
}

.je-logo img {
    max-height: 64px;
    max-width: 220px;
    object-fit: contain;
}

/* Title */
.je-title {
    text-align: center;
    margin: 10px 0 14px;
}

    .je-title h1 {
        font-size: 22px;
        font-weight: 800;
        margin: 0;
        color: var(--je-accent);
    }

/* Sections */
.je-section {
    margin: 16px 0;
}

.je-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--je-accent);
    margin: 0 0 10px;
}

/* Key-Value Table */
.je-kv, .je-ledger {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--je-line);
    border-radius: 12px;
    overflow: hidden;
}

    .je-kv thead th,
    .je-ledger thead th {
        background: var(--je-head);
        color: #0c2746;
        font-weight: 700;
        padding: 10px 12px;
        border-bottom: 1px solid var(--je-line);
        text-align: start;
    }

    .je-kv tbody td,
    .je-ledger tbody td {
        padding: 10px 12px;
        border-bottom: 1px solid var(--je-line);
        vertical-align: top;
    }

    .je-kv tbody tr:last-child td,
    .je-ledger tbody tr:last-child td {
        border-bottom: none;
    }

    .je-ledger tfoot td {
        padding: 10px 12px;
        background: #f8fbff;
        border-top: 1px solid var(--je-line);
    }

.je-num-col {
    width: 140px;
}

.je-num {
    text-align: end;
    font-variant-numeric: tabular-nums;
}

.je-strong {
    font-weight: 800;
}

/* Notes */
.je-notes {
    padding: 12px;
    border: 1px dashed var(--je-line);
    border-radius: 10px;
    color: var(--je-muted);
    line-height: 1.7;
    min-height: 40px;
}

/* Footer */
.je-footer {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid var(--je-line);
    color: var(--je-muted);
    font-size: 13px;
    text-align: center;
}

/* Actions (screen only) */
.je-actions {
    display: flex;
    justify-content: center;
    margin: 16px 0 32px;
}

.je-print-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: linear-gradient(180deg, #fff, #f7fbff);
    border: 1px solid #e6eef7;
    color: #0b172a;
    padding: .6rem 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(8, 90, 155, .10);
    transition: transform .12s ease, box-shadow .18s ease, border-color .2s ease;
    cursor: pointer;
}

    .je-print-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(8, 90, 155, .14);
        border-color: rgba(29,127,163,.35);
    }

/* Loading */
.je-loading {
    max-width: 900px;
    margin: 24px auto;
    text-align: center;
    color: var(--je-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .je-doc {
        padding: 18px;
        margin: 12px;
        border-radius: 12px;
    }

    .je-header {
        flex-direction: column;
        align-items: stretch;
    }

    .je-logo {
        display: flex;
        justify-content: center;
    }

    .je-num-col {
        width: 110px;
    }
}

/* Print */
@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    :root {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .je-doc {
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }

    .je-actions {
        display: none !important;
    }

    .je-header {
        padding-bottom: 8px;
        margin-bottom: 10px;
    }

    .je-title {
        margin: 0 0 10px;
    }

    .je-section {
        margin: 10px 0;
    }

    thead {
        display: table-header-group;
    }

    tfoot {
        display: table-footer-group;
    }

    tr, img {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
/* على الشاشات الصغيرة خلّي الخط لا يقل عن 16px */
@media (max-width: 480px) {
    .search-input {
        font-size: 16px; /* يمنع الزووم */
        padding: .4rem .6rem; /* صغّر الشكل */
        /* اختياري جدًا: تصغير بصري مع الحفاظ على 16px حقيقي */
        /* transform: scale(0.95); transform-origin: left center; */
    }
}

html {
    -webkit-text-size-adjust: 100%;
}
/* يمنع تغييرات تلقائية لحجم النص من المتصفح */

.form-control-sm {
    border-radius: 8px;
}

.btn-outline-primary {
    border-radius: 8px;
    transition: all 0.2s;
}

    .btn-outline-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1);
    }


/* Contract Pages Custom Styles */

/* Modern Card Styling */
.modern-contract-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .modern-contract-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

/* Smart Card */
.smart-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

    .smart-card:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }

/* Statistics Cards */
.stat-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
        pointer-events: none;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

.stat-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card-success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    color: #2d3748;
}

.stat-card-warning {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #2d3748;
}

.stat-card-danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-icon {
    opacity: 0.3;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    opacity: 0.5;
    transform: scale(1.1);
}

/* Modern Breadcrumb */
.modern-breadcrumb {
    font-size: 0.95rem;
}

.breadcrumb-item a {
    transition: all 0.3s ease;
}

    .breadcrumb-item a:hover {
        transform: translateX(-2px);
    }

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    opacity: 0.6;
}

/* Form Controls Enhancement */
.form-control.rounded-pill,
.form-select.rounded-pill {
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

    .form-control.rounded-pill:focus,
    .form-select.rounded-pill:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Table Enhancement */
.table {
    border-radius: 10px;
    overflow: hidden;
}

    .table thead th {
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        padding: 1rem;
    }

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

        .table tbody tr:hover {
            background-color: rgba(102, 126, 234, 0.05);
            transform: scale(1.01);
        }

/* Button Groups */
.btn-group .btn {
    border: none;
    transition: all 0.3s ease;
}

    .btn-group .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

/* Progress Bar Enhancement */
.progress {
    border-radius: 10px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.progress-bar {
    font-weight: 600;
    transition: width 0.6s ease;
}

/* Badge Enhancement */
.badge {
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s ease;
}

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

/* Modal Enhancement */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

/* Card Headers */
.card-header {
    border: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate__fadeInDown {
    animation: fadeInUp 0.5s ease;
}

/* Pagination Enhancement */
.pagination {
    gap: 5px;
}

.page-link {
    border-radius: 10px;
    border: none;
    background: #f8f9fa;
    color: #495057;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

    .page-link:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: translateY(-2px);
    }

.page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.page-item.disabled .page-link {
    background: #e9ecef;
    opacity: 0.5;
}

/* Contract Status Colors */
.contract-status-active {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.contract-status-inactive {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.1);
}

.contract-status-completed {
    color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

.contract-status-cancelled {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Payment Status */
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
}

    .payment-badge.paid {
        background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
        color: #1a5f3f;
    }

    .payment-badge.unpaid {
        background: linear-gradient(135deg, #fda085 0%, #f6d365 100%);
        color: #8b4513;
    }

/* Filters Section */
.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .card {
        border: 1px solid #dee2e6 !important;
        page-break-inside: avoid;
    }

    .table {
        font-size: 12px;
    }
}

/* Loading Spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .table {
        font-size: 0.85rem;
    }

    .modern-breadcrumb {
        font-size: 0.8rem;
    }
}

/* Tooltip Enhancement */
[title] {
    position: relative;
    cursor: help;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    }
