/* CSS Variables */
@import url('../tailwindcss-colors.css');


/* Utility Classes */
.prim-heading {
    font-size: 1.5rem; /* Smaller than default */
    font-weight: 600;
    color: var(--s-text-100);
}
label {
    font-size: 12px;
    color: var(--s-label-clr);
    font-weight: 600;
}
.form-control {
    font-size: 14px;
    font-weight: 400;
    color: var(--s-label-clr);
}
.btn-check:focus+.btn, .btn:focus {
    box-shadow: inherit !important;
}
input[type="date"]:focus, input[type="date"]:active, .form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--s-blue-200);
}

.main-flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mng-svg {
    width: 20px; 
    height: 20px; 
    display: block; 
    flex-shrink: 0;
    margin: 0px 7px 2px 3px; 
}

.text-danger {
    margin: 0;
    font-size: 12px;
}

.swal2-confirm {
    color: var(--white) !important; 
    border: 1px solid var(--s-blue-200) !important;
    background-color: var(--s-blue-200) !important;
}

.swal2-confirm, .swal2-cancel {
    padding: 10px 20px !important;
    white-space: nowrap !important;
}

/* Your existing CSS styles */
body, html {
    margin: 0;
    height: 100%;
    overflow-x: hidden;
    background-color: #f8f7fa;
    font-family: 'Poppins', sans-serif;
    /* font-size: 62.5%; 10px = 62.5% of the default 16px */
}

/* Sidebar styles */
.sidebar {
    height: 100%;
    width: 220px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--white);  /* Light grey background */
    padding-top: 20px;
    color: #333;
    display: flex;
    flex-direction: column;
    transition: width 0.3s;
    border-right: 1px solid #e0e0e0;
    box-shadow: 0 .25rem 1.125rem rgba(75, 70, 92, .1); /* Optional: Subtle Shadow */
}

.sidebar.collapsed {
    width: 67px;
}

.sidebar.collapsed > a {
    justify-content: center;
}

.sidebar.collapsed > a > i {
    margin: 0;
}

.sidebar a {
    height: 40px;
    margin: 5px;
    border-radius: 8px;
    padding: 5px 15px;
    text-decoration: none;
    font-size: 13px;
    text-transform: capitalize;
    color: #7d7d7d; /* Lighter grey */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: background-color 0.3s, color 0.3s, font-weight 0.3s;
}

.sidebar a:hover {
    background-color: #e9e9e9;
}

/* Box around the icon */
.sidebar a i {
    margin-right: 5px;
    font-size: 17px !important;
    padding: 4px; /* Smaller padding just around the icon */
    border-radius: 4px; /* Rounded corners */
    background-color: transparent; /* Default light grey background for icons */
    /* background-color: #f1f1f1; Default light grey background for icons */
    transition: background-color 0.3s, color 0.3s;
}

/* Active state for link */
.sidebar a.active {
    color: #fff;
    font-weight: 500;
    background: linear-gradient(90deg, rgba(18, 39, 92, 1) 0%, rgba(51, 95, 147, 1) 70%, rgba(52, 85, 137, 1) 100%);
}

/* Hide text when sidebar is collapsed */
.sidebar.collapsed a span {
    display: none; /* Hide the text when sidebar is collapsed */
}

/* Toggle button styles */
.toggle-btn {
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;
    color: #333;
    font-size: 18px;
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: #f9f9f9;
    border-radius: 0 5px 5px 0;
    border: 1px solid #e0e0e0;
    transition: background-color 0.3s;
}

.toggle-btn:hover {
    background-color: #e0e0e0;
}

.sidebar.collapsed .toggle-btn {
    right: -25px; /* Adjusted for smaller sidebar */
}

.sidebar .logout {
    margin-top: auto;
    text-align: center;
    color: #7d7d7d; /* Same color as other sidebar items */
}

.content {
    margin-left: 220px;
    padding: 20px;
    transition: margin-left 0.3s;
}

.collapsed-content {
    margin-left: 60px;
}

/* Logo at the top */
.logo {
    gap: 5px;
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 0 15px 15px 0;
    justify-content: center;
}

.logo .bot-head {
    color: var(--s-orange-200);
}

.logo img {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    margin: 5px 0 0 0;
    object-fit: cover;
}

.logo span {
    font-size: 31.5px;
    font-weight: bold;
    color: #2b4968;
    margin-top: 0px;
    white-space: nowrap;
}

.logo small {
    font-size: 11px;
    color: var(--s-orange-200);
    margin: -10px 0 0 3px;
}

.logo-description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.sidebar.collapsed > .logo  {
    margin-right: 0;
}

.sidebar.collapsed > .logo > .logo-description {
    display: none;
}

.sidebar.collapsed .logo span {
    display: none; /* Hide logo text when collapsed */
}

.sidebar .badge {
    background-color: red;
    font-size: 12px;
    margin-left: 5px;
}

/* ------------------- New Custom Styles Below ------------------- */

.table > thead > tr{
    background-color: #F8F8F8 !important;
}

.table th, .table td {
    padding: 0.5rem; /* Reduced padding */
    font-size: 13px; /* Slightly smaller font */
    vertical-align: middle;
}

/* Change Font Size datatable*/
.dataTables_info, .dataTables_paginate {
    font-size: 14px;
}

/* Add margin below the search box */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px; /* Adjust as needed */
}

/* Adjust font sizes for headings */
h2, h3 {
    font-size: 1.8rem; /* Smaller than default */
    font-weight: 600;
}

/* Style buttons for consistency */
.btn {
    font-size: 0.9rem; /* Slightly smaller font */
}

/* Modal title adjustments */
.modal-title {
    font-weight: 600;
}

/* Compact pagination controls */
.pagination {
    margin-top: 20px;
}

/* Align upload and delete buttons to the bottom */
.action-buttons {
    display: flex;
    margin-top: 20px;
    align-items: center;
    justify-content: space-between;
}

/* Customize the Update Vector Store banner */
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Make the table more aesthetic */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: inherit;
    --bs-table-accent-bg: inherit;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.075);
}

/* Optional: Add transition effects to table rows */
.table tbody tr {
    transition: background-color 0.3s;
}

/* Optional: Adjust the size of icons within the table */
.table .bi {
    font-size: 1rem;
}

.mng-poistion-right .bi, .mng-poistion-right .fas {
    font-size: 15px;
    color: var(--s-blue-200) !important;
}

.mng-poistion-right tr th:last-child {
    /* right: 0;
    position: sticky;
    background-color: var(--white); */
}

.mng-poistion-right tr td:last-child {
    white-space: nowrap;

    /* right: 0;
    position: sticky;
    background-color: var(--white);
    box-shadow: rgb(17 12 46 / 9%) 0px 48px 100px 0px;
    border-left: 3px solid #f0f5f7; */
}

.freezAction {
    right: 0;
    /* position: sticky; */
    background-color: var(--white);
}
/* Dashboard file Card CSS */

/* Custom Card Style */
.card-custom {
    background-color: var(--white); /* Light Gray Background */
    color: #333333; /* Dark Text for Readability */
    border: 1px solid #ddd; /* Optional: Light Border */
    box-shadow: 0 .25rem 1.125rem rgba(75, 70, 92, .1); /* Optional: Subtle Shadow */
}

/* Custom Button Style */
.btn-custom, .btn-warning{
    flex: 0;
    font-weight: 500;
    min-height: 35px;
    font-size: 13px;
    padding: 0.4rem 1.5rem;
    color: var(--white); /* White Text */
    border: 1px solid var(--s-blue-200);
    background-color: var(--s-blue-200); /* Deep Blue Background */
}

.outline-btn {
    font-weight: 500;
    min-height: 35px;
    padding: 0.4rem 1.5rem;
    background-color: transparent;
    color: var(--s-blue-300);
    border: 1px solid var(--s-blue-300);
}

.btn-warning {
    flex: 0 0 auto;
}

.btn-warning:hover, .btn-check:active+.btn-warning, .btn-check:checked+.btn-warning, .btn-warning.active, .btn-warning:active, .show>.btn-warning.dropdown-toggle, .btn-check:focus+.btn-warning, .btn-warning:focus {
    color: var(--white); /* Maintain White Text */
    border: 1px solid var(--s-blue-200);
    background-color: var(--s-blue-200); /* Darker Blue on Hover */
}

/* Considra theme light blue Button */

/* .btn-warning {
    flex: 0 0 auto;
    min-height: 35px;
    font-size: 13px;
    font-weight: 500;
    padding: 0.4rem 1.5rem;
    border: 1px solid var(--s-blue-300);
    background-color: var(--s-blue-100);
    color: var(--s-blue-300);
}

.btn-warning:hover,.btn-warning:focus {
    color: var(--white);
    border: 1px solid var(--s-blue-200);
    background-color: var(--s-blue-200);
} */

/* END Considra theme light blue Button */

.btn-custom:hover {
    color: var(--white); /* Maintain White Text */
    background-color: var(--s-blue-300); /* Darker Blue on Hover */
}

.btn-custom:focus {
    color: var(--s-blue-300); /* Darker Blue on Hover */
    background-color: transparent;
    border: 1px solid var(--s-blue-300) !important;
}

.outline-btn:hover {
    color: var(--s-blue-300); /* White Text */
    background-color: var(--s-blue-100); /* Darker Blue on Hover */
}

.btn-secondary {
    flex: 0 0 auto;
    min-height: 35px;
    font-size: 13px;
    font-weight: 500;
    padding: 0.4rem 1.5rem;
    color: #6D6D6D;
    background-color: #EBEBEB;
    border: 1px solid #EBEBEB;
}

.btn-secondary:hover {
    color: #6D6D6D;
    background-color: #D6D6D6;
    border: 1px solid #D6D6D6;
}
/* lOGIN fILE caRD css */

/* body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
} */
.login-container {
    width: 400px;
    height: 300px;
    text-align: center;
}
img {
    width: 250px;
    height: auto;
    margin-bottom: 5px;
}
h2 {
    font-size: 14px;
    color: #7d7d7d;
    margin-bottom: 20px;
    font-weight: 400; /* Make the subheading not bold */
}
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
a:hover {
    cursor: pointer;
    color: var(--s-blue-200); /* Darker Blue on Hover */
}
.scrool-bar {
    margin: 0;
    padding: 0;
    height: 550px;
    list-style: none;
    overflow-y: auto; /* Enable vertical scrolling only when needed */
    overflow-x: hidden; /* Hide horizontal scrolling completely */
}

.scrool-bar::-webkit-scrollbar {
    width: 10px;
    height: 0px;
}

.scrool-bar::-webkit-scrollbar-track {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.scrool-bar::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: var(--s-blue-200);
    /* outline: 2px solid rgb(231, 136, 12); */
}

.scrool-bar::-webkit-scrollbar-thumb:hover {
    border-radius: 10px;
    background-color: var(--s-blue-300);
    /* outline: 2px solid rgb(231, 136, 12); */
}

/* input[type="text"], input[type="password"], button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #7d7d7d;
    box-sizing: border-box;
}
input::placeholder {
    color: #7d7d7d;
} */
button {
    background-color: var(--s-blue-200);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
}
button:hover {
    background-color: var(--s-blue-300);
}
/* .modal-header button:hover {
    background-color: inherit;
} */
.modal-header .btn-close:focus {
    box-shadow: inherit;
}
/* Flash Messages */
.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
    font-size: 14px;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Manage File CARD CSS */

/* Ensure the table uses fixed layout to respect column widths */
/* table {
    table-layout: fixed;
    width: 100%;
} */

/* Style for the Uploaded By column */
.uploaded-by {
    white-space: nowrap;          /* Prevent text from wrapping */
    overflow: hidden;             /* Hide overflowed content */
    text-overflow: ellipsis;      /* Display ellipsis for overflowed content */
    max-width: 150px;             /* Set a max width to control the column size */
}

/* Style for File Name and Comments to allow text wrapping */
.file-name, .comments {
    white-space: normal;        /* Allow text to wrap onto multiple lines */
    word-wrap: break-word;      /* Break long words to prevent overflow */
    word-break: break-all;      /* Break words at any character if necessary */
    max-width: 100%;            /* Ensure it respects the column width */
}

/* Optional: Set specific max-widths if needed */
/* Adjust these values based on your design requirements */
@media (max-width: 768px) {
    .file-name {
        max-width: 200px;
    }

    .comments {
        max-width: 150px;
    }
}

@media (min-width: 769px) {
    .file-name {
        max-width: 300px;
    }

    .comments {
        max-width: 250px;
    }
}

@media (max-width: 425px) {
    .login-container {
        width: 300px;
    }
}
/* START Cloapse Button */
.colapse-btn {
    top: 60px;
    width: 30px;
    height: 30px;
    right: -18px;
    display: flex;
    margin-bottom: 0;
    position: absolute;
    border-radius: 100%;
    align-items: center;
    justify-content: center;
    background-color: var(--s-orange-200);
}
.colapse-btn i {
    font-size: 22px !important;
}
.colapse-btn:focus {
    outline: inherit;
}
.colapse-btn:hover {
    background-color: var(--s-orange-300);
}
/* END Cloapse Button */

/* Read More & Read Less */
.read-more {
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--s-blue-200);
    text-decoration: underline;
}
.read-more:hover {
    color: var(--s-orange-300);
}
.comment-wrapper {
    position: relative;
    line-height: 1.5;
    font-size: 13px;
}
.comment-text {
    transition: max-height 0.3s ease;
}
/* END Read More & Read Less */

/* Select 2 CSS */

/* General Select2 Styles */
.select2-container {
    width: 100% !important; /* Ensure full-width for Bootstrap compatibility */
}

/* Match Bootstrap Form Styling */
.select2-container .select2-selection {
    height: 33px !important;
    padding: 0.375rem 0.75rem;
    font-size: 15px;
    border: 1px solid #ced4da !important;
    box-shadow: inherit;
}

/* Focus Style */
.select2-container .select2-selection--single:focus,
.select2-container .select2-selection--multiple:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--s-blue-200);
}

/* Dropdown Match */
.select2-container .select2-dropdown {
    border: 1px solid #ced4da; /* Match border color */
    border-radius: 0.375rem; /* Match border radius */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for dropdown */
}

/* Placeholder Text */
.select2-container .select2-selection__placeholder {
    color: #6c757d; /* Match Bootstrap's placeholder color */
    font-style: italic;
}

/* Disabled State */
.select2-container--disabled .select2-selection {
    background-color: #e9ecef; /* Match Bootstrap's disabled input background */
    opacity: 1; /* Ensure readability */
}

/* Clear Button */
/* .select2-container .select2-selection__clear {
    color: #dc3545; 
    font-size: 0.9rem;
    margin-right: 0.5rem;
    cursor: pointer;
} */

.select2-selection__clear {
    display: none;
}

.select2-selection__rendered {
    margin: -4px 0 0 -8px;
}

.select2-search__field {
    height: 30px;
    font-size: 13px;
    border-radius: 4px;
}

.select2-container .select2-results__option {
    font-size: 13px !important;
}

.select2-search__field:focus {
    outline: none;
}

/* Dropdown Option Styling */
.select2-container .select2-results__option {
    padding: 0.5rem; /* Add spacing for dropdown items */
    font-size: 1rem; /* Match Bootstrap font size */
}

.select2-container .select2-results__option--highlighted {
    background-color: #e9ecef; /* Light highlight color for selected option */
    color: #212529; /* Dark text for contrast */
}
/* 
table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date {
    text-align: left !important;
} */

/* END Select 2 CSS */

/* DropDpown Arrow */

.arrow-position {
    z-index: 1;
    position: relative;
}
.arrow-position::before {
    top: 50%;
    content: '';
    right: 7px;
    width: 8px;
    height: 6px;
    position: absolute;
    pointer-events: none;
    background-color: #888888;
    transform: translateY(-50%);
    clip-path: polygon(100% 0, 0 0, 50% 100%);
}

/* Rotate arrow on focus or interaction */
.arrow-position:focus-within::before {
    transform: translateY(-50%) rotate(180deg);
}

/* END DropDpown Arrow */

/* btn Padding */
.btn-padd {
    font-size: 12px !important;
    padding: 2px 8px !important;
    font-weight: 500 !important;
    min-height: 32px !important;
    border-radius: 4px !important;
}
/* END btn Padding */