/* --- New File View Page Styles --- */

.file-details-card, .uploader-card, .cta-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}
body {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  background-color: #f8f9fa;
}

.file-icon-wrapper {
    font-size: 2rem; /* Reduced */
    color: #0d6efd;
}

.file-details-card .card-body {
    padding: 1.5rem; /* Reduced */
}

.file-details-card .card-title {
    font-size: 1.5rem; /* Reduced */
}

.detail-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem; /* Reduced */
    background-color: #f8f9fa;
    padding: 0.5rem; /* Reduced */
    border-radius: 0.25rem;
}

.detail-item i {
    font-size: 1rem; /* Reduced */
    margin-left: 0.5rem; /* Adjusted */
}

.download-section {
    margin-top: 1.5rem;
}

.download-btn-re {
    font-weight: 600;
    padding: 0.6rem 1.2rem; /* Reduced */
}

.uploader-card .card-header, .cta-card .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 1rem; /* Reduced */
}

.uploader-card .card-body, .cta-card .card-body {
    padding: 1rem; /* Reduced */
}

.uploader-card .uploader-info-list {
    font-size: 0.9rem;
}

/*
 * Sidebar
 */

.sidebar {
  z-index: 100; /* Behind the navbar */
}

[dir="rtl"] .sidebar {
    right: 0;
    left: auto;
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, .1);
}

[dir="ltr"] .sidebar {
    left: 0;
    right: auto;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}


@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 1rem;
  background-color: transparent;
}

[dir="rtl"] .navbar-brand {
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, .25);
}

[dir="ltr"] .navbar-brand {
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}


.navbar .navbar-toggler {
  top: .25rem;
}

[dir="rtl"] .navbar .navbar-toggler {
    left: 1rem;
    right: auto;
}

[dir="ltr"] .navbar .navbar-toggler {
    right: 1rem;
    left: auto;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.container {
    max-width: 1500px;
}

.table th,
.table td {
    vertical-align: middle;
    white-space: nowrap; /* Ensure content stays on one line */
}

/* Responsive Styles */
@media (max-width: 992px) {
    body {
        font-size: 0.95rem;
    }
    .container {
        max-width: 960px;
    }
    .table th,
    .table td {
        padding: 0.6rem 0.8rem;
    }
    .btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.9rem;
    }
    .container {
        max-width: 720px;
    }
    .card-header {
        padding: .5rem;
    }
    .card-body {
        padding: 0.5rem;
    }
        .card-body h5 {
        font-size: 1rem !important;
    }
    .btn {
        padding: 0.4rem 0.8rem;
    }
    .form-control {
        padding: 0.6rem 0.9rem;
    }
    .sidebar {
        position: static;
        width: 100%;
        box-shadow: none;
        height: auto;
        margin-bottom: 0rem;
    }
    .sidebar-sticky {
        height: auto;
        position: static;
    }
    #upload-form .btn-success {
        width: 100%;
    }
}

@media (min-width: 992px) { /* Equivalent to Bootstrap's lg breakpoint */
    .offcanvas-lg {
        visibility: visible !important;
        transform: none !important;
        position: relative !important;
        display: block !important; /* Ensure it's displayed */
        width: auto !important; /* Reset width if offcanvas sets it */
        height: auto !important; /* Reset height */
    }
    .offcanvas-lg .offcanvas-header {
        display: none !important; /* Hide the header (close button, title) on large screens */
    }
    .offcanvas-lg .offcanvas-body {
        display: flex !important; /* Ensure body is flex on large screens */
        flex-direction: column !important;
        padding: 0 !important; /* Reset padding if offcanvas adds it */
    }
}

.table th,
.table td {
    padding: 0.25rem;
    white-space: nowrap; /* Ensure content stays on one line */
}
html, body {
    height: 100%;
}
body {
    display: flex;
    flex-direction: column;
}
.content-wrapper {
    flex: 1;
}

/* RTL Pagination Fix */
[dir="rtl"] .pagination .page-item:first-child .page-link {
    border-top-right-radius: .25rem;
    border-bottom-right-radius: .25rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

[dir="rtl"] .pagination .page-item:last-child .page-link {
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Fix for input-group border-radius in RTL */
[dir="rtl"] .input-group > .form-control:not(:last-child),
[dir="rtl"] .input-group > .form-control-plaintext:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.375rem; /* Default Bootstrap border-radius */
    border-bottom-right-radius: 0.375rem; /* Default Bootstrap border-radius */
}

[dir="rtl"] .input-group > .btn:not(:first-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.375rem; /* Default Bootstrap border-radius */
    border-bottom-left-radius: 0.375rem; /* Default Bootstrap border-radius */
}

[dir="rtl"] .input-group > .input-group-text:not(:first-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.375rem; /* Default Bootstrap border-radius */
    border-bottom-left-radius: 0.375rem; /* Default Bootstrap border-radius */
}

/* Specific fix for search input group in RTL */
[dir="rtl"] .input-group #searchPayouts {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0.375rem !important;
    border-bottom-right-radius: 0.375rem !important;
}

[dir="rtl"] .input-group .input-group-text {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
}

.table-responsive {
    overflow-x: auto;
}

.accordion-button {
    display: flex;
    justify-content: space-between; /* Pushes content to ends */
    text-align: right; /* Ensures text is right-aligned */
    flex-direction: row; /* Default flex direction, title first, then arrow */
}

.accordion-button::after {
    margin-left: 0; /* No auto margin needed with space-between */
    margin-right: 0; /* Resets any default right margin */
}

.sidebar-column {
    border-left: 1px solid #dee2e6;
}

@media (max-width: 767.98px) {
    .sidebar-column {
        border-left: none;
        border-bottom: none;
    }
}

#searchInput {
    padding: 0.3rem 0.6rem;
}

.card-header h5 {
    font-size: 1.15rem;
}

.notification-item .accordion-button-wrapper {
    font-size: 1rem;
}
.notification-item .fw-bold {
    font-size: 0.85rem !important;
}
.notification-item .text-muted {
    font-size: 0.75rem !important;
}
.notification-item .dropdown-item {
    font-size: 0.8rem !important;
}
.notification-item .accordion-body {
    font-size: 0.85rem;
}

.notification-widget .card-header h6 {
    font-size: 1rem !important;
}
.notification-widget .card-header a {
    font-size: 0.75rem !important;
}
.notification-widget .list-group-item p {
    font-size: 1rem !important;
}
.notification-widget .list-group-item small {
    font-size: 0.7rem !important;
}

#sidebarMenu.offcanvas {
    --bs-offcanvas-width: 80%;
}
