/* Define the LUCILLE font */
@font-face {
    font-family: "CLusail";
    src: url("/fonts/Lusail/Lusail-Regular.otf") format("opentype"),
    url("/fonts/Lusail/Lusail-Regular.woff") format("woff"),
    url("/fonts/Lusail/Lusail-Regular.woff2") format("woff2"),
    url("/fonts/Lusail/Lusail-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "CLusail";
    src: url("/fonts/Lusail/Lusail-Medium.otf") format("opentype"),
    url("/fonts/Lusail/Lusail-Medium.woff") format("woff"),
    url("/fonts/Lusail/Lusail-Medium.woff2") format("woff2"),
    url("/fonts/Lusail/Lusail-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "CLusail";
    src: url("/fonts/Lusail/Lusail-Light.otf") format("opentype"),
    url("/fonts/Lusail/Lusail-Light.woff") format("woff"),
    url("/fonts/Lusail/Lusail-Light.woff2") format("woff2"),
    url("/fonts/Lusail/Lusail-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: block;
}
@font-face {
    font-family: "CLusail";
    src: url("/fonts/Lusail/Lusail-Bold.otf") format("opentype"),
    url("/fonts/Lusail/Lusail-Bold.woff") format("woff"),
    url("/fonts/Lusail/Lusail-Bold.woff2") format("woff2"),
    url("/fonts/Lusail/Lusail-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: block;
}
/* General Body Styling */
body {
    font-family: "CLusail" ,sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    direction: rtl;
    text-align: right;
}

/* App Container */
#app {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(90deg, #6a162b 0%, #7b1b33 60%, #8c2040 100%);
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    padding-top: 0;
    padding-bottom: 0;
    min-height: 52px;
}

.navbar .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-size: 14px;
    font-weight: 500;
    padding: .65rem 1rem !important;
    border-radius: 8px;
    transition: background .18s ease, color .18s ease;
    display: flex;
    align-items: center;
    gap: 7px;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #fff !important;
    background: rgba(255,255,255,.12);
}

.navbar .nav-link.active-nav {
    color: #fff !important;
    background: rgba(255,255,255,.15);
}

/* User avatar circle */
.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    border: 1.5px solid rgba(255,255,255,.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    color: #fff;
}

/* Dropdown toggle caret */
.navbar .dropdown-toggle::after {
    opacity: .65;
    margin-right: 2px;
}

/* Dropdown panel */
.navbar .dropdown-menu {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
    padding: 6px;
    min-width: 210px;
    text-align: right;
    margin-top: 6px !important;
}

/* Dropdown section divider label */
.navbar .dropdown-menu .dropdown-header {
    font-size: 12px;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: .5px;
    padding: 6px 12px 4px;
    text-transform: uppercase;
}

/* Dropdown items */
.navbar .dropdown-menu .dropdown-item {
    color: #1f2937;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background .15s ease;
}

.navbar .dropdown-menu .dropdown-item i,
.navbar .dropdown-menu .dropdown-item svg {
    color: #7b1b33;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background: rgba(123,27,51,.07);
    color: #7b1b33;
}

.navbar .dropdown-menu .dropdown-item.text-danger {
    color: #dc3545 !important;
}
.navbar .dropdown-menu .dropdown-item.text-danger i {
    color: #dc3545 !important;
}
.navbar .dropdown-menu .dropdown-item.text-danger:hover {
    background: rgba(220,53,69,.07);
}

.navbar .dropdown-divider {
    border-color: rgba(0,0,0,.06);
    margin: 4px 6px;
}

/* Main Content */
main {
    flex: 1;
}

/* Footer Styles */
footer {
    background-color: #8a1538;
    color: #ECF0F1;
    padding: 15px 0;
    text-align: center;
}

footer a {
    color: #ECF0F1;
    text-decoration: none;
}

footer a:hover {
    color: #3498DB;
    text-decoration: underline;
}

/* ── Site Header ─────────────────────────────────────────────── */
.logo-container {
    background: linear-gradient(170deg, #fff 0%, #fdf5f7 55%, #fff 100%);
    border-top: 5px solid #7b1b33;
    padding: 20px 0 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(123,27,51,.08);
}

/* Decorative radial blobs */
.logo-container-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.logo-deco-tr {
    width: 260px; height: 260px;
    top: -90px; right: -70px;
    background: radial-gradient(circle at 55% 45%,
        rgba(123,27,51,.07) 0%, transparent 65%);
}
.logo-deco-bl {
    width: 200px; height: 200px;
    bottom: -70px; left: -50px;
    background: radial-gradient(circle at 45% 55%,
        rgba(123,27,51,.05) 0%, transparent 65%);
}

/* Subtle dot-grid texture on far sides */
.logo-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(123,27,51,.06) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0;
    opacity: .45;
    pointer-events: none;
    /* mask the centre so it only shows on edges */
    -webkit-mask-image: linear-gradient(90deg,
        black 0%, transparent 25%, transparent 75%, black 100%);
    mask-image: linear-gradient(90deg,
        black 0%, transparent 25%, transparent 75%, black 100%);
}

.logo-container-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.logo-org-block {
    text-align: center;
}

.logo-org-block img {
    max-width: 680px;
    width: 88%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* App logo — absolutely fills the right side of the banner */
.logo-app-aside {
    position: absolute;
    right: 40px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-app-vdiv {
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(123,27,51,.30), transparent);
    flex-shrink: 0;
}

.logo-app-icon {
    height: 156px;
    width: auto;
}

/* System name tagline */
.logo-sys-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}
.logo-sys-line {
    display: inline-block;
    width: 55px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123,27,51,.35));
}
.logo-sys-line-r {
    background: linear-gradient(90deg, rgba(123,27,51,.35), transparent);
}
.logo-sys-text {
    font-size: 12px;
    font-weight: 700;
    color: #7b1b33;
    letter-spacing: 1.4px;
    opacity: .78;
    white-space: nowrap;
    font-family: "CLusail", sans-serif;
}

@media (max-width: 576px) {
    .logo-container { padding: 14px 0 12px; }
    .logo-org-block img { width: 92%; }
    .logo-sys-text { font-size: 10.5px; letter-spacing: .8px; }
    .logo-sys-line { width: 30px; }
    .logo-app-aside { right: 10px; gap: 8px; }
    .logo-app-icon { max-width: 52px; border-radius: 9px; }
}

/* Page Header Styling */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #A29475;
}

.page-title {
    font-size: 24px;
    color: #8B7A62;
    font-weight: bold;
}

.btn-add-report {
    background-color: #A29475;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn-add-report:hover {
    background-color: #8B7A62;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Card Border Styling */
.card {
    border: 2px solid #A29475;
    background-color: transparent;
    height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.3s;
}

.card:hover {
    background-color: rgba(250, 250, 248, 0.4);
}

.card-body {
    text-align: center;
    flex: 1;
}

.card-icon {
    font-size: 40px;
    color: #A29475;
    margin-bottom: 10px;
}

/* Button and Form Styling */
.btn {
    width: auto;
    padding: 5px 15px;
    margin-bottom: 10px;
    background-color: #A29475;
    color: white;
    border: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background-color: #8B7A62;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-info {
    background-color: #8a1538;
    border-color: #8a1538;
}

.btn-info:hover {
    background-color: #6e112e;
}

.btn-primary {
    background-color: #A29475;
    border-color: #A29475;
}

.btn-primary:hover {
    background-color: #8B7A62;
    border-color: #8B7A62;
}

/* Table Styling */
.table-custom {
    width: 100%;
    border-collapse: collapse;
    background-color: #F5F2EB;
    border: 1px solid #A29475;
    border-radius: 5px;
}

.table-custom thead {
    background-color: #8a1538;
    color: white;
    font-weight: bold;
}

.table-custom th,
.table-custom td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: right;
}

.table-custom th {
    text-align: center;
}

.table-custom tr:nth-child(even) {
    background-color: #E0D7BF;
}

.table-custom tr:nth-child(odd) {
    background-color: #ffffff;
}

.table-custom tr {
    height: 40px;
}

/* Action Button Styling */
.btn-action {
    background-color: #8a1538;
    color: #fff;
    border: none;
    padding: 5px 8px;
    margin: 2px;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 3px;
    font-size: 14px;
}

.btn-edit {
    background-color: #A29475;
}

.btn-delete {
    background-color: #8a1538;
}

/* Column Visibility Toggles */
.toggle-columns {
    margin-bottom: 15px;
}

.toggle-columns label {
    margin-right: 10px;
    font-weight: bold;
}

/* DataTables Styling */
.dataTable {
    width: 90%;
    margin: 0 auto;
}
/* Wide Container for Larger Tables */
.wide-container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    padding: 15px;
    list-style: none;
    border-radius: 5px;
}

.pagination li {
    margin: 0 5px;
}

.pagination a, .pagination span {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #8a1538;
    color: white;
}

.pagination .active span {
    background-color: #8a1538;
    color: white;
    border-color: #8a1538;
}

.pagination .disabled span {
    background-color: #f2f2f2;
    color: #ccc;
    cursor: not-allowed;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .wide-container {
        width: 100%;
        font-size: 14px;
    }

    .btn-container {
        flex-direction: column;
        align-items: flex-end;
    }
}
.table-dark {
    background-color: #8a1538;

}
/* Ensure table cells don't break into multiple lines */
.table-custom th,
.table-custom td {
    white-space: nowrap; /* Prevent line breaks */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dark background for the table header */
.table-custom thead {
    background-color: #343a40; /* Dark background color */
    color: white; /* Text color for better contrast */
    font-weight: bold;
}

/* Responsive adjustment for wider tables */
@media (max-width: 768px) {
    .table-custom th,
    .table-custom td {
        white-space: normal; /* Allow wrapping on smaller screens */
    }
}
