:root {
    --ultra-light-green: #6fe86f;
    --super-light-green: #4ad44a;
    --yellow: #e0b710;
    --blue: #3269a8;
    --light-blue: #0e76ed;
    --dark-blue: #124075;
    --red: #f54040;
    --dark-green: #ff6633;
    --black: #202120;
    --black-hover: #3b3d3b;
    --dark-gray: #0f0f0f;
    --dark-gray-hover: #232423;
    --gray: #59636e;
    --light-gray: #939993;
    --placeholder-gray: #a9a9a9;
    /* --super-light-gray: #ced2d6; */
    --super-light-gray: #f9f9f9;
    --blue-white: #e8f2fc;
    --white: #fff;
    --transparante-backround: rgba(32, 33, 32, 0.2);
    --shadow: rgba(0, 0, 0, 0.1);
    --transparent-background: rgba(50, 57, 69, 0.3)
}

@font-face {
    font-family: 'Loverine';
    src: url('/fonts/Loverine/Loverine.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/* Apply margin and padding reset globally */

@font-face {
    font-family: 'Poppins';
    font-weight: 400;
    /* Regular */
    font-style: normal;
    src: url('/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 700;
    /* Bold */
    font-style: normal;
    src: url('/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 300;
    /* Light */
    font-style: normal;
    src: url('/fonts/Poppins/Poppins-Light.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 600;
    /* SemiBold */
    font-style: normal;
    src: url('/fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 100;
    /* Thin */
    font-style: normal;
    src: url('/fonts/Poppins/Poppins-Thin.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 400;
    /* Regular */
    font-style: italic;
    src: url('/fonts/Poppins/Poppins-Italic.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 700;
    /* Bold */
    font-style: italic;
    src: url('/fonts/Poppins/Poppins-BoldItalic.ttf') format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

html {
    scroll-behavior: smooth;
    /* overflow: hidden; */
}

/* @media (min-height: 1200px){
    html{
        zoom: 2;
    }
} */

body {
    font-display: optional;
    background-color: var(--white);
    display: flex;
    justify-content: end;
    /* align-items: center; */
    overflow-y: auto;
    overflow-x: hidden;
    /* ?????? none */
    background-attachment: scroll;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    backdrop-filter: blur(20px);
    background-image: linear-gradient(120deg, rgba(240, 247, 255, 0.9), rgba(255, 255, 255, 0.95));
}


/* ========== Custom Elements ========== */
a {
    text-decoration: none;
    color: black;
}

.file-icon {
    margin-right: 5px;
    font-size: 20px !important;
}

.title-black {
    color: var(--black);
    font-weight: bold;
    font-size: 20px;
}

.title-white {
    color: var(--blue-white);
    font-weight: bold;
    font-size: 20px;
    text-align: center;
}

.title-25 {
    font-size: 25px;
}

.close-button::before {
    color: var(--red);
    font-size: 16px;
    height: 16px;
    cursor: pointer;
}

/* =============== Custom Toggle Switch ============== */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 32px;
    height: 19px;
    background: #ccc;
    border-radius: 12px;
    transition: background 0.3s;
}

.toggle-circle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch.active {
    background: #4caf50;
}

.toggle-switch-blue.active {
    background: var(--light-blue) !important;
}

.toggle-switch.active .toggle-circle {
    transform: translateX(13px);
}

/* =============== Custom Multi Select Checkbox ============== */
.multi-select-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--gray);
    background-color: white;
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.multi-select-checkbox:checked {
    background-color: #007bff;
    border: 2px solid #007bff;
}

.multi-select-checkbox:checked::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Style for bulk actions */
.multi-select-actions {
    margin-top: 10px;
}

.multi-select-actions button {
    padding: 5px 10px;
    margin-right: 10px;
    cursor: pointer;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

.multi-select-actions button:hover {
    background-color: #0056b3;
}

.custom-input {
    width: 300px;
    /* height: 22px; */
    border: none;
    padding: 10px 15px;
    background-color: var(--white);
    margin: 5px;
    border: none;
    border-radius: 10px;
    color: var(--black);
    /* box-shadow: 0 1px 6px var(--shadow); */
    border: 1px solid #e0e0e0;
    transition: border 0.3s ease;
}

.custom-input:hover {
    border-color: var(--light-blue);
}

.custom-input:focus {
    border-color: var(--light-blue);
}

.custom-input-wide {
    width: 450px;
}

.custom-input-full-width {
    width: calc(100% - 55px);
    /* width: 100%; */
}

.custom-input-short {
    box-shadow: none;
    width: 70% !important;
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 0;
}

.custom-input2 {
    width: 0;
    opacity: 0;
    padding: 0;
    border: 1px solid transparent;
    transition: width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    font-size: 12px;
}

.custom-input2:focus {
    border: 1px solid #ccc;
    outline: none;
}

.projects-element.editing {
    height: 32px;
}

.projects-element.editing .custom-input2 {
    width: 150px;
    /* Adjust width as needed */
    opacity: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.dropdown-activator {
    cursor: pointer;
}

.dropdown-search {
    cursor: text;
}

.custom-dropdown {
    position: relative;
}

.custom-dropdown-options-wrapper {
    display: none;
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    z-index: 9998;
    margin: 0 5px;
    /* outline: 1px solid var(--black); */
    filter: drop-shadow(0 4px 6px var(--shadow));
    top: 55px;
}

.custom-dropdown-options-panel {
    overflow-y: auto;
    max-height: 320px;
    padding: 5px;
    background-color: var(--black);
    border-radius: 10px;
    overflow: hidden;
}

.custom-dropdown-option {
    /* width: 305px; */
    font-size: 13px;
    padding: 10px;
    background-color: var(--dark-gray-hover);
    color: var(--white);
    cursor: pointer;
}

.custom-dropdown-option:hover {
    background-color: var(--black-hover);
    /* filter: brightness(85%); */
}

.custom-dropdown-option:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.custom-dropdown-option:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.text-area {
    resize: none;
    height: 100%;
    width: calc(100% - 55px);
    /* width: 70%; */
}

.text-area::-webkit-scrollbar {
    width: 5px;
}

.text-area::-webkit-scrollbar-thumb {
    background-color: var(--light-gray);
    border-radius: 10px;
}

.text-area::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.text-area::-webkit-scrollbar-track {
    background: var(--dark-gray);
}

.custom-tooltip {
    position: absolute;
    /* background: rgba(0, 0, 0, 0.75); */
    background-color: var(--black-hover);
    /* border: 1px solid #e0e0e0; */
    color: #fff;
    padding: 7px 10px;
    font-size: 10px;
    border-radius: 5px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 9999;
    transform: translate(-50%, 0%);
    display: none;

    max-width: 150px;
    /* Set a max width */
    white-space: normal;
    /* Allow text wrapping */
    word-wrap: break-word;
    /* Ensure words break properly */
    overflow-wrap: break-word;
    /* Ensure long words wrap */
    text-align: center;
}

.custom-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -7px;
    border-width: 7px;
    border-style: solid;
    border-color: var(--black-hover) transparent transparent transparent;
}

/* =================== Custom Scroll ===================== */

.custom-scroll {
    overflow-y: scroll;
    /* scrollbar-gutter: stable; */
    /* clip-path: inset(0 0 0 0 round 10px); */
}

/* Scrollbar Design */
.custom-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    margin-top: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background-color: var(--light-gray);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent !important;
}


/* ===================== Custom Scroll Colors =================== */

.custom-scroll-white::-webkit-scrollbar-track {
    background: var(--white) !important;
}

.custom-scroll-dark-gray::-webkit-scrollbar-track {
    background: var(--dark-gray) !important;
}

.custom-scroll-black::-webkit-scrollbar-track {
    background: var(--black) !important;
}

.custom-scroll-transparent::-webkit-scrollbar-track {
    background-color: transparent !important;
}

.custom-scroll-none::-webkit-scrollbar {
    display: none;
}

/* ===================== Hidden Scroll Colors =================== */
.custom-scroll-hidden::-webkit-scrollbar {
    display: none;
}

/* =============================================== */

.custom-input:focus {
    /* border: none; */
    outline: none;
}

.show-password-div {
    margin: 5px !important;
    display: flex;
    text-align: center;
}

.checkbox-text {
    font-size: 12px;
    padding: 5px;
}

.custom-button {
    background-color: var(--light-blue);
    color: var(--white);
    padding: 10px 12px;
    margin: 5px;
    border-radius: 10px;
    /* height: 40px; */
    /* filter: drop-shadow(0 4px 6px var(--shadow)) brightness(100%); */
    /* box-shadow: 0 4px 6px var(--shadow); */
    border: none;
    transition: all 0.2s ease-in-out;
    /* text-transform: uppercase; */
    font-size: 12px;
}

.custom-button-secondary {
    outline: 2px solid var(--light-blue);
    outline-offset: -2px;
    background-color: transparent;
    color: var(--light-blue);
}

.custom-button-secondary:hover {
    background-color: #d0e1f5;
}

.custom-button-red {
    color: var(--white);
    background-color: var(--red);
}

.custom-button i {
    font-size: 18px;
}

.custom-button-blue {
    background-color: var(--blue) !important;
}

.custom-button:hover {
    /* outline: none; */
    cursor: pointer;
    filter: brightness(85%);
}


.handwritten {
    font-style: italic;
    font-weight: bold;
    font-family: "Patrick Hand", cursive;
    font-size: 40px;
}

/* Old Login Page Style */
/* .login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.login-panel {
    display: flex;
    align-items: center;
    gap: 100px;
}

.login-panel-welcome-text {
    font-size: 75px;
    color: var(--blue-white);
    display: flex;
    flex-direction: column;
    width: 650px;
    text-align: center;
    align-items: center;
    z-index: 1;
    text-shadow: 3px 3px 0px var(--black);
    font-family: 'Loverine', sans-serif;
}

.login-form {
    position: relative;
    background-color: var(--blue-white);
    border-radius: 25px;
    width: 600px;
    height: 400px;
    box-shadow: 8px 8px 5px var(--shadow);
    display: flex;
    flex-direction: row;
    justify-items: end;
    overflow: hidden;
    z-index: 2;
}

.login-form-left-panel {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.login-form-right-panel {
    background-color: var(--dark-gray-hover);
    width: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: -4px 0px 6px var(--shadow);
}

.login-form-wavy-lines-image {
    height: 500px !important;
}

.login-form-title {
    text-align: center;
    font-size: 25px !important;
}

.login-tid-link {
    color: var(--light-blue);
    position: absolute;
    bottom: 5px;
    right: 45px;
    font-size: 12px;
}

.login-tid-link:hover {
    color: var(--blue);
}

.login-button,
.login-input {
    width: 90%;
}

.login-error {
    margin: 0 !important;
    color: red;
    font-size: 12px;
}

.login-top-left-title {
    font-size: 1.5rem;
    display: inline-block;
    color: var(--black);
    position: absolute;
    background-color: var(--blue-white);
    padding: 5px 10px;
    top: 10px;
    left: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px var(--shadow);
    transform: scale(1) !important;
}

@keyframes slideLeft {
    0% {
        transform: translateX(50%);
        z-index: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@media only screen and (max-width: 1400px) {
    .login-panel {
        flex-direction: column !important;
        align-items: center;
    }
}

@media only screen and (max-width: 700px) {
    .login-panel {
        gap: 25px;
    }

    .login-panel-welcome-text {
        font-size: 50px;
        width: 400px;
    }

    .login-form {
        width: 380px;
        height: 350px;
    }

    .login-form-right-panel {
        display: none;
    }
}

.animation-slide-left {
    animation: slideLeft 0.5s ease-out forwards;
}

.animation-slide-right {
    animation: slideRight 0.6s ease-out forwards;
}

.main-panel {
    width: calc(100% - 167px);
} */


/* Base sidebar styling */
/* =================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    height: calc(100% - 20px);
    /* background-color: var(--black); */
    background: radial-gradient(circle at top left, #1c1c1e 0%, #0f0f0f 70%),
        linear-gradient(135deg, rgba(0, 119, 255, 0.15) 0%, transparent 100%);
    /* Dark background */
    color: #fff;
    /* White text */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
    transition: width 0.3s ease-in-out;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    margin: 10px 0;
    border: 1px solid var(--black);
    box-shadow: 3px 0 4px rgba(0, 0, 0, 0.05);
}

/* Expanded vs. Collapsed widths */
.header-expanded {
    width: 220px;
}

.header-collapsed {
    width: 60px;
}

/* Toggle button alignment */
.nav-toggle-button {
    font-size: 24px;
    color: #fff;
    padding: 15px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.header-expanded .nav-toggle-button {
    margin-left: auto;
    margin-right: 10px;
}

/* Logo styling */
.nav-title-pin {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    color: var(--black);
    padding: 5px 10px;
    border-radius: 10px;
    box-shadow: 4px 4px 0px var(--light-blue);
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 10px;
}

/* Full logo width */
.big-badge {
    width: 137px;
    padding-right: 0;
}

/* Small logo width */
.nav-title-little-pin {
    width: 29px;
    padding-right: 5px;
    padding-left: 5px;
}

/* Toggle logo visibility */
.header-expanded .big-badge {
    opacity: 1;
    transform: scale(0.8) translateY(0);
}

.header-expanded .small-badge {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
}

.header-collapsed .big-badge {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
}

.header-collapsed .small-badge {
    opacity: 1;
    transform: scale(0.8) translateY(0);
}

/* Logo fade-out for transition */
.logo-fade-out {
    opacity: 0;
    transform: translate(-10px, -10px) scale(0.8);
}

/* Logo text styling */
.nav-title {
    color: var(--black);
    position: relative;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.nav-title-second-font {
    font-family: 'Loverine', sans-serif;
    font-size: 28px;
    position: absolute;
    top: 50%;
    transform: translateY(-40%);
    right: 9px;
    font-weight: bold;
    color: var(--light-blue);
}

.nav-title-little-second-font {
    right: 4px !important;
}

/* Nav options container */
.nav-options {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}

.nav-options-mobile {
    display: none;
}

/* Nav option link styling */
.nav-option {
    position: relative;
    /* For tooltip positioning */
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: var(--white);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

/* Icon styling */
.nav-option i {
    font-size: 20px;
    margin-right: 10px;
}

/* Fixed-width text container for nav options */
.nav-text {
    display: inline-block;
    width: 125px;
    /* Adjust as needed */
    white-space: nowrap;
    overflow: hidden;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

/* Hide nav text in collapsed mode */
.header-collapsed .nav-text {
    opacity: 0;
}

/* Hover effect: background color only */
.nav-option:hover {
    background-color: #2e302e;
}

/* Current page styling */
.nav-option.current-page {
    box-shadow: 2px 0 0 var(--light-blue) inset;
}

/* Custom Tooltip Styles using header-tooltip */
.header-tooltip {
    position: fixed;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

.header-tooltip.show {
    opacity: 1;
}

/* Profile + logout section */
.nav-profile {
    /* margin-top: auto; */
    width: calc(100% - 32px);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #2e302e; */
    background-color: var(--black);
}

.nav-profile-name {
    font-size: 12px;
    width: 125px;
    margin-left: 8px;
}

/* Profile info styling */
.nav-profile-info {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-profile-image i {
    font-size: 24px;
    /* margin-right: 10px; */
    color: var(--light-blue);
}

/* Hide profile name and logout in collapsed mode */
.header-collapsed .nav-profile-name,
.header-collapsed .nav-profile-logout {
    display: none;
}

/* Logout icon styling */
.nav-profile-logout i {
    font-size: 18px;
    color: #fff;
    transition: color 0.2s;
}

.nav-profile-logout i:hover {
    color: var(--red);
}


.bi-box-arrow-right,
.bi-door-open {
    color: var(--red);
    font-size: 20px;
}

.bi-person-circle {
    font-weight: bold;
    font-size: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-blue);
}

/* =================== */

/* footer {
    width: 100%;
    bottom: 0px;
    color: var(--black);
    background-color: var(--super-light-gray);
    font-size: 12px;
    display: flex;
    justify-content: center;
    padding: 25px;
    margin-top: 15px;
    bottom: 0;
    box-shadow: 3px 3px 5px var(--shadow);
} */

.page-title {
    text-align: center !important;
    /* margin: 10px 0 !important; */
    color: var(--black) !important;
    font-size: 20px;
    /* margin-bottom: 20px; */
}

.secondary-title {
    text-align: center !important;
    margin: 5px 0 !important;
    color: var(--blue-white) !important;
    font-size: 14px;
    font-weight: bold;
}

/* .chat-trigger-button {
    background-color: var(--white);
    padding: 10px;
    border: none;
    position: fixed;
    right: 30px;
    bottom: 30px;
    cursor: pointer;
    transition: right 0.5s ease;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0px 6px 9px var(--shadow);
    color: var(--blue);
} */

.chat-div {
    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    right: 30px;
    bottom: 30px;

    padding: 10px;
    width: 30px;
    height: 30px;

    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0px 6px 9px var(--shadow);
    color: var(--light-blue);

    /* cursor: pointer; */

    transition: right 0.5s ease;
    z-index: 1001;
    /* pointer-events: none; */
    transition: height 0.2s ease;
}

.chat-div>* {
    pointer-events: auto;
}

.chat-trigger-button {
    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    right: 30px;
    bottom: 30px;

    padding: 10px;
    width: 30px;
    height: 30px;

    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0px 6px 9px var(--shadow);
    color: var(--light-blue);

    cursor: pointer;

    transition: right 0.5s ease;
    z-index: 999;
}

.chat-trigger-button:hover {
    background-color: var(--blue-white)
}

.chat-trigger-button i {
    font-size: 25px;
}

.chats-opened {
    width: 320px;
    height: 640px;
    animation: chatOpen 0.3s ease-out forwards !important;
    border: 1px solid #e0e0e0;
    padding: 0 !important;
    /* padding-top: 35px; */
    background-color: var(--white) !important;
    align-items: end;
}

.chats-opened:hover {
    background-color: var(--white);
}

@keyframes chatOpen {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    70% {
        transform: scale(1.05);
        opacity: 1;
    }

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

.chat-icon-hidden {
    display: none;
}

.chat-trigger-button.chats-opened {
    animation: chatOpen 0.5s forwards;
}

.chat-close-button {
    display: none;
    color: var(--red);
    filter: drop-shadow(0 4px 6px var(--shadow));
    z-index: 999;
    cursor: pointer;
}

.chat-close-button-visible {
    display: inherit;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px !important;
    z-index: 999;
}

.chats-panel {
    padding: 0;
    display: none;
    overflow-y: auto;
    height: calc(100% - 45px);
    width: calc(95% - 10px);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    flex-direction: column;
    background-color: var(--super-light-gray);
    box-shadow: 0 4px 6px var(--shadow);
    /* gap: 3px; */
}

.chats-panel-visible {
    display: inherit;
    color: var(--black);
}

.chat-current {
    display: none;
    height: calc(100% - 65px);
    width: calc(100% - 30px);
    background-color: var(--blue-white) !important;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    display: none;
    flex-direction: column;
    overflow: auto;
    padding: 10px;
}

.chat-current-visible {
    display: inherit;
}

.chat-panel-current-chat-opened {
    display: flex;
    flex-direction: column;
    justify-content: end;
    animation: currentChatOpen 0.2s ease-out forwards;
    /* height: 450px;
    width: 300px; */
}

.chats-back-button {
    display: none;
    position: absolute;
    color: var(--gray);
    filter: drop-shadow(0 4px 6px var(--shadow));
    top: 8px;
    left: 8px;
    font-size: 18px !important;
    z-index: 999;
    height: 18px;
    width: 18px;
    cursor: pointer;
}

.chats-back-button::before {
    font-size: 18px !important;
}

.chats-back-button-visible {
    display: inherit;
}

.chat-top {
    display: none;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    top: 8px;
}

/* .chat-top i {
    cursor: pointer;
} */

.chat-top i::before {
    font-size: 16px;
    height: 16px;
    width: 16px;
}

.chat-top i:hover {
    filter: brightness(85%);
    cursor: pointer;
    transition: all 0.2s;
}

.chat-current-username {
    /* display: none; */
    font-size: 14px;
    color: var(--black);
}

.chat-current-username-visible {
    display: flex;
    flex-direction: row;
}

.chat-send-input-div {
    position: absolute;
    bottom: 25px;
    transform: translateX(-50%);
    left: 50%;
}

.chatbox-messages {
    padding-bottom: 55px;
}

@keyframes currentChatOpen {
    0% {
        height: 640px;
        width: 320px;
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        height: 400px;
        width: 300px;
        /* opacity: 0.5; */
    }
}

.chats-panel-users {
    width: 100%;
}

.chats-panel-user {
    padding: 15px 10px;
    background-color: var(--super-light-gray);
    width: 95%;
    font-size: 14px;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.chats-panel-user:hover {
    background-color: var(--blue-white);
}

.chats-panel-user div {
    display: flex;
    align-items: center;
}

.chats-panel-user i {
    font-size: 14px;
    color: var(--gray);
}

.chat-person {
    padding: 10px;
    margin-bottom: 3px;
    display: flex;
    background-color: var(--dark-gray);
    width: 170px;
    cursor: pointer;
    border-radius: 5px;
}

.chat-person:hover {
    background-color: var(--light-gray);
}

.chat-no-picture::before {
    font-size: 30px;
    color: var(--light-gray);
}

.chat-person-name {
    padding: 0 10px;
}

.chat-person-name p {
    font-size: 13px;
    color: var(--blue-white);
}

.chatbox {
    z-index: 998;
    position: fixed;
    bottom: 40px;
    right: 40px;
    height: 370px;
    width: 280px;
    background-color: var(--blue-white);
    display: none;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 10px 10px 10px var(--shadow);
}

.chatbox-top {
    background-color: var(--dark-green);
    padding: 10px 25px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: var(--blue-white);
    box-shadow: 0px 2px 2px var(--shadow);
}

.chatbox-current-user {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.chatbox-close {
    background-color: var(--dark-green);
    color: var(--blue-white);
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.chatbox-close:hover {
    color: var(--black);
}

.chatbox-chat {
    height: 280px;
    padding: 10px 5px;
    overflow-y: auto;
}

.chatbox-chat::-webkit-scrollbar {
    width: 5px;
}

.chatbox-chat::-webkit-scrollbar-thumb {
    background-color: var(--light-gray);
    border-radius: 10px;
}

.chatbox-chat::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.chatbox-chat::-webkit-scrollbar-track {
    background: var(--blue-white);
}

.chatbox-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#ChatboxMessage {
    width: 240px;
}

.chatbox-send-button {
    position: absolute;
    right: 20px;
    font-size: 15px;
    color: var(--black);
}

.chatbox-send-button:hover {
    color: var(--dark-green);
}

.chatbox-message {
    border: none;
    outline: none;
    margin: 8px;
    padding: 10px 15px;
    padding-right: 30px;
    width: 260px;
    border-radius: 5px;
    background-color: var(--light-gray);
    font-size: 12px;
}

.chatbox-message:active {
    border: none;
    outline: none;
}

.send-message,
.recieved-message {
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    margin: 2px;
    display: inline-block;
    max-width: 80%;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 0 4px 6px var(--shadow);
}

.send-message {
    background-color: var(--super-light-gray);
    border: 1px solid #e0e0e0;
    color: var(--black);
}

.recieved-message {
    background-color: var(--light-blue);
    /* border: 1px solid var(--blue); */
    color: var(--black);
    justify-self: end;
}

.recieved-message-line {
    display: flex;
    justify-content: end;
}

/* ===== Call Modal ===== */
.call-modal {
    border: 1px solid #e0e0e0;
    position: absolute;
    width: 350px;
    height: 60px;
    background-color: var(--super-light-gray);
    display: flex;
    visibility: hidden;
    gap: 20px;
    box-shadow: 0 2px 3px var(--shadow);
    border-radius: 10px;
    top: -70px;
    right: -450px;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 998;
    transition: right 0.3s ease-in;
}

.call-modal-visible {
    visibility: visible;
    right: 0;
    /* transition: right 0.3s ease-in-out; */
}

.call-modal-default-text {
    position: absolute;
    top: 3px;
    transform: translateX(-50%);
    left: 50%;
    color: var(--light-gray);
    font-size: 10px;
}

.caller-name {
    color: var(--black);
    font-size: 14px;
    margin-left: 30px;
}

.call-buttons {
    display: flex;
    gap: 10px;
}

.call-button {
    height: 35px;
    width: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px var(--shadow);
}

.call-button:hover {
    filter: brightness(85%);
    cursor: pointer;
    transition: all 0.2s;
}

.call-button-accept {
    background-color: var(--super-light-green);
}

.call-button-reject {
    background-color: var(--red);
}

.call-button-reject i {
    transform: rotate(135deg);
}

.call-button i {
    /* font-size: 18px; */
    /* height: 18px;
    width: 18px; */
    color: var(--white);
}

.call-button i::before {
    /* font-size: 20px; */
    height: 18px;
    /* width: 18px; */
}

.call-panel {
    visibility: hidden;
    position: absolute;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: var(--blue-white);
    margin: 15px;
    border-radius: 15px;
    width: calc(100% - 120px);
    height: calc(100vh - 70px) !important;
    gap: 20px;
    overflow-y: auto;
    justify-content: space-between;
    align-items: center;
    transform-origin: bottom right;
    /* Sets the animation starting point */
    opacity: 0;
    /* Initially invisible */
    transform: scale(0.5);
    /* Starts smaller */
    z-index: 998;
}

.call-panel-visible {
    visibility: visible;
    position: relative;
    display: flex !important;
    animation: showCallWindow 0.4s ease-out forwards;
}

.hide-prev-panel {
    animation: showCallWindow 0.3s ease-out reverse forwards;
    visibility: none;
    position: absolute;
}

@keyframes showCallWindow {
    0% {
        transform: scale(0.5);
        /* Start smaller */
        opacity: 0;
        /* Fully transparent */
    }

    70% {
        transform: scale(1.05);
        /* Slight overshoot for a bounce effect */
        opacity: 1;
        /* Fade in */
    }

    100% {
        transform: scale(1);
        /* Normal size */
        opacity: 1;
        /* Fully visible */
    }
}


.call-videos-div {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: 100%;
    /* height: auto; */
}

.call-video {
    background-color: var(--black);
    /* border: 1px solid #e0e0e0; */
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
}

.call-video-large-div {
    position: relative;
    width: 100%;
}

.call-video-large {
    width: 100%;
    height: 100%;
    /* height: calc(70%);
    height: calc(100% - 40px);
    width: calc(100% - 0px); */
}

.call-vieo-small-movable-div {
    position: absolute;
    z-index: 1001;
    left: 20px;
    bottom: 20px;
    width: 20%;
}

.call-video-small-div {
    height: fit-content;
    position: relative;
    /* width: calc(100% - 1440px - 25px); */
    width: 100%;
    overflow: hidden;
}

.call-video-small {
    position: relative;
    width: 100%;
    background-color: var(--dark-gray);
}

.call-video-controls {
    display: flex;
    gap: 10px;
    color: var(--gray);
    position: absolute;
    z-index: 100;
    background-color: var(--shadow);
    bottom: 15px;
    left: 20px;
    border-radius: 10px;
    padding: 5px 10px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.1s ease-in;
}

.call-current-user {
    position: absolute;
    top: 10px;
    left: 20px;
    color: var(--white);
    z-index: 999;
    font-size: 18px;
    background-color: var(--shadow);
    border-radius: 10px;
    padding: 5px 10px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.call-video-elements-visible {
    visibility: visible;
    opacity: 1;
}

.call-bottom {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.call-controls {
    position: relative;
    display: flex;
    width: fit-content;
    box-shadow: 0 4px 6px var(--shadow);
    /* border: 1px solid #e0e0e0; */
    border-radius: 10px;
    overflow: hidden;
}

.call-duration {
    color: var(--white);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
}

.call-control-button {
    padding: 15px 20px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-control-button:hover {
    filter: brightness(85%);
    cursor: pointer;
    transition: all 0.2s;
}

.call-control-button i::before {
    color: var(--black);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.call-control-button i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-control-button-end-call {
    background-color: var(--red);
}

.call-control-button-end-call i::before {
    color: var(--white) !important;
    transform: rotate(135deg) !important;
}

#callButton {
    /* position: absolute;
    left: 50%;
    bottom: 30px; */
}

/* Video Call loader */
/* HTML: <div class="loader"></div> */
/* HTML: <div class="loader"></div> */
.loader {
    width: 5%;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--light-blue);
    --_m:
        conic-gradient(#0000 10%, #000),
        linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    z-index: 999;
    /* Explicitly set the rotation origin */
}

.loader-video-hidden {
    display: none;
}

@keyframes l3 {
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}



.page-div {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 1200px;
    min-width: 400px;
    z-index: 1;
    /* background-color: var(--transparante-backround); */
}

.form-page h4 {
    text-align: center;
    margin: 10px 0px;
}

.page-welcome-text {
    display: flex;
    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    /* position: absolute; */
    box-shadow: 0 4px 6px var(--shadow);
}

.projects-panel {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: transparent;
    /* margin: 15px;
    border-radius: 15px; */
    width: calc(100% - 100px);
    /* ???????? ??????????? ????????, ?? ?? ???? body ?? ????? ?????? */
    /* height: calc(100% - 70px); */
    gap: 20px;
    overflow: visible;
    /* ???? ???????? ??????? */
    transition: width 0.2s ease-in-out;
}

.projects-hello-message {
    font-size: 25px;
    display: flex;
    gap: 5px;
    align-items: baseline;
    user-select: none;
    margin-left: 20px;
    padding: 10px 0;
}

.projects-loverine-font {
    font-family: 'Loverine', sans-serif !important;
    color: var(--light-blue);
    font-size: 30px;
    font-weight: bold;
    display: flex;
}


.project-search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.projects-search-input-container {
    width: 100%;
}

.custom-input-icon-container {
    position: relative;
}

.custom-input-icon-container .custom-input {
    padding-left: 33px;
}

.custom-input-icon-container .inside-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    left: 10px;
    color: var(--light-blue);
}

.custom-input-icon-container:focus-within .bi-search {
    color: var(--light-blue);
}

.custom-input-icon-container .bi-search {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    left: 10px;
    color: var(--placeholder-gray);
}

.project-search-input {
    width: calc(100% - 48px);
    margin-left: 0;
    margin-right: 0;
    margin: 0;
}

.projects-sort-filter-views {
    display: flex;
    position: relative;
    justify-content: space-between;
    gap: 10px;
}

.projects-sort-filter-views .project-tasks-sort-dropdown {
    width: 140px !important;
}

.projects-sort-filter-views input {
    background-color: var(--white);
}

.projects-sort-filter-views .inside-icon {
    color: var(--black) !important;
}

.project-views-options {
    background-color: var(--super-light-gray);
    display: flex;
    padding: 5px 15px;
    gap: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px var(--shadow);
}

.project-view-option {
    display: flex;
    align-items: center;
}

.project-view-table i,
.project-view-widget i,
.project-view-option i {
    font-size: 25px;
    color: var(--black);
    z-index: 2;
    position: relative;
}

.projects-views-current {
    background-color: var(--light-blue);
    width: 38px;
    height: 38px;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
    transition: left 0.1s ease-in;
    border: 1px solid var(--blue);
    box-shadow: 0 6px 9px var(--shadow);
}

.projects-views-current-table {
    left: 8.5px;
    top: 50%;
    transform: translateY(-50%);
}

.projects-views-current-widget {
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
}

/* ======== Projects Table View ========= */
.projects-elements-table {
    display: flex;
    flex-direction: column;
    /* border: 1px solid #e0e0e0; */
    border-radius: 10px;
    overflow: hidden;
    width: calc(100% - 2px);
    margin: 0 0 20px 0;
    background-color: var(--white);
    box-shadow: 0 4px 6px var(--shadow);
}

.projects-table-header {
    /* border: 1px solid var(--dark-gray); */
    background-color: var(--black);
    color: var(--white);
    text-transform: uppercase;
    /* border: 1px solid #e0e0e0;
    background-color: var(--white);
    color: var(--black); */
    display: flex;
    /* position: sticky;
    top: 0; */
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 3px var(--shadow);
    z-index: 10;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* ?????????? ????? header ? ???????? */
}

.projects-table-header i::before {
    padding-left: 5px;
    font-size: 18px;
    /* height: 16px; */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-blue);
}

.projects-table-header>div {
    flex: 1;
    text-align: start;
    padding: 0 10px;
}

.projects-table-header-name {
    font-size: 14px;
}

.projects-element-type {
    color: var(--light-blue) !important;
}

.projects-elements-table .projects-element {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.projects-elements-table .projects-element:nth-child(odd) {
    background-color: var(--white);
}

.projects-elements-table .projects-element:nth-child(even) {
    background-color: #f9f9f9;
}

.projects-elements-table .projects-element:hover {
    background-color: #eef6ff;
}

.projects-elements-table .projects-element .projects-element-column {
    flex: 1;
    padding: 0 10px;
    text-align: left;
    font-size: 12px;
    color: #555555;

}

.projects-elements-table .projects-element .projects-element-name {
    font-weight: bold;
    color: #222222;
}

.projects-elements-table .projects-element .projects-element-description {
    display: none;
}

.projects-elements-table .projects-element .projects-element-location-div i {
    display: none;
}

.projects-elements-table .projects-element .projects-element-deadline {
    font-weight: bold;
    color: #217346;
}

.projects-elements-table .projects-element .projects-element-deadline-div i {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {

    .projects-table-header,
    .projects-elements-table .projects-element {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .projects-table-header>div,
    .projects-elements-table .projects-element>div {
        text-align: left;
        padding: 5px;
    }
}

/* Widget View Styles */

.projects-elements-widget {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    /* border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid #e0e0e0;
    padding: 20px;
    background-color: var(--white); */
}

.projects-elements-widget .projects-element {
    background-color: var(--super-light-gray);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.projects-elements-widget .projects-element:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    border-color: #d0d0d0;
}

.projects-elements-widget .projects-element .projects-element-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--black);
    margin-bottom: 10px;
}

.projects-elements-widget .projects-element .projects-element-type {
    font-size: 14px;
    color: var(--light-blue);
    font-style: italic;
    margin-bottom: 10px;
}

.projects-element-location-div {
    display: flex;
    align-items: center;
    gap: 5px;
    /* margin-bottom: 15px; */
}

.projects-element-location-div i {
    font-size: 16px;
    color: var(--gray);
}

.projects-element-location-div .projects-element-location {
    font-size: 14px;
    color: var(--gray);
}

.projects-elements-widget .projects-element .projects-element-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--black);
    margin: 20px 0;
}

.projects-elements-widget .projects-element .projects-element-deadline-div {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.projects-elements-widget .projects-element .projects-element-deadline-div .projects-element-deadline {
    color: #217346;
    font-weight: bold;
}

.projects-elements-widget .projects-element .projects-element-deadline-div i {
    color: #217346;
    font-size: 16px;
}

.projects-elements-widget .projects-element .projects-element-client {
    display: none;
}

.projects-elements-widget .projects-element .projects-element-contractor {
    display: none;
}

.projects-elements-widget .projects-element .projects-element-completion-state {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.projects-elements-widget .projects-element .projects-element-completion-state .projects-element-completion-bar {
    background-color: var(--black);
    width: 82%;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.projects-elements-widget .projects-element .projects-element-completion-state .projects-element-completion-bar .bar-percantage {
    /* background-color: var(--light-blue); */
    background: repeating-linear-gradient(45deg,
            rgb(0, 119, 255) 0px,
            rgb(0, 119, 255) 10px,
            rgb(0, 76, 255) 10px,
            rgb(0, 76, 255) 20px);
    filter: brightness(110%);
    height: 100%;
    width: 0%;
}

.projects-table-header.hidden {
    display: none;
}


/* ======== Single Project ========= */
.project-panel {
    flex-direction: row !important;
    /* height: calc(100% - 70px); */
    /* width: calc(60% - 90px); */
    /* height: 100%; */
    /* overflow-y: initial; */
    /* overflow-y: scroll !important; */
    /* background-color: rgba(232, 242, 252, 1) !important; */
    border: none !important;
    box-shadow: none !important;
    /* padding: 20px; */
}

.project-panel-column {
    flex-direction: column !important;
}

.project-panel-column .project-right-panel,
.project-panel-column .project-left-panel {
    /* width: 100%; */
}

.project-middle-panel {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.project-left-panel {
    display: flex;
    width: calc(50%);
    gap: 30px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.project-right-panel {
    width: calc(50%);
    height: 100%;
    gap: 30px;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.project-and-user-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: calc(50% - 20px);
}

.project-upload-new-file {
    display: flex;
    font-size: 14px;
    color: var(--gray);
    padding: 5px 15px !important;
    /* padding: 5px 15px !important; */
}

.files-delete-div {
    position: absolute;
    gap: 10px;
    right: 0;
    padding: 0 5px;
    z-index: 9;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projects-element.editing .files-delete-div {
    display: none;
}

.reverte-deleted-files {
    margin-left: 10px;
    height: 35px;
    width: 35px;
    padding: 0;
}

.reverte-deleted-files i {
    font-size: 14px;
}

.revert-delete-icon .main-icon {
    color: white !important;
    font-size: 14px !important;
}

.revert-delete-icon .overlay-icon {
    color: white !important;
    font-size: 10px !important;
    /* height: 10px; */
    display: flex;
    border-radius: 50%;
    padding: 1px;
    justify-content: center;
    align-items: center;
    bottom: 2px !important;
    right: -4px !important;
}

.deleted-project-files-button {
    width: 15px;
    height: 15px;
}

.download-history-icon {
    width: 23px;
    height: 27px;
}

.combined-icons {
    position: relative;
    display: inline-block;
    background-color: inherit;
}

.combined-icons:hover .main-icon,
.combined-icons:hover .overlay-icon {
    color: var(--light-blue);
}

.combined-icons .main-icon {
    font-size: 14px;
    color: var(--light-gray);
}

.combined-icons .overlay-icon {
    position: absolute;
    bottom: 6px;
    right: 2px;
    font-size: 12px;
    color: var(--light-gray);
    background-color: inherit;
}

.files-element-name {
    transition: height 1s ease;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.files-delete-confirm-div {
    position: relative;
    display: flex;
    align-items: center;
    width: 40px;
    /* initial width */
    transition: width 0.3s ease;
    overflow: hidden;
}

/* Delete trigger area */
.files-delete-trigger {
    cursor: pointer;
    padding: 0;
    padding-right: 5px;
}

/* Trash icon styling */
.files-delete-icon,
.files-download-icon,
.files-edit-icon {
    color: var(--light-gray);
    font-size: 18px;
    transition: transform 0.3s ease;
}

.files-download-icon:hover,
.files-edit-icon:hover {
    color: var(--light-blue);
}

.cancel-edit-button,
.confirm-edit-button {
    border: none;
    outline: none;
    background-color: transparent;
    padding: 2px 3px;
    cursor: pointer;
}

.cancel-edit-button i,
.confirm-edit-button i {
    font-size: 14px;
}

.cancel-edit-button:hover i {
    color: var(--red);
}

.confirm-edit-button:hover i {
    color: var(--light-blue);
}

/* Container for confirmation options */
.delete-confirm-options {
    display: flex;
    gap: 8px;
    margin-left: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Clickable confirm and decline areas */
.confirm-button,
.decline-button {
    cursor: pointer;
    padding: 2px 3px;
    /* Increased clickable area */
    border-radius: 4px;
    transition: color 0.2s ease;
}

/* Hover effects for better feedback */

.confirm-button:hover .files-confirm-icon {
    color: var(--light-blue);
}

.decline-button:hover .files-decline-icon {
    color: var(--red);
}

/* Icon styling inside confirm and decline areas */
.files-confirm-icon,
.files-decline-icon {
    font-size: 14px;
    color: var(--black);
    transition: color 0.2s ease;
}

/* Expanded state: container widens and confirmation options slide in */
.confirm-active {
    width: 105px;
    /* Adjust width as needed */
}

.confirm-active .delete-confirm-options {
    opacity: 1;
    transform: translateX(0);
}

.projects-elements-table .projects-element:nth-child(even):has(.files-delete-div:hover) {
    background-color: #f9f9f9;
}

.projects-elements-table .projects-element:nth-child(odd):has(.files-delete-div:hover) {
    background-color: var(--white);
}

.files-delete-div:hover {
    /* background-color: #eef6ff; */
}

.project-upload-new-file i {
    padding: 0 6px;
    color: var(--light-blue);
    font-size: 18px;
}

.project-top {
    display: flex;
    gap: 15px;
}

.project-info {
    /* width: calc(100% - 40px);
    border-radius: 10px;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px var(--shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative; */
}

.project-info-inside-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--super-light-gray);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    padding-bottom: 45px;
    position: relative;
}

.project-title {
    /* font-size: 16px; */
}

.project-type {
    color: var(--light-blue);
    font-size: 14px;
}

.project-location {
    color: var(--gray);
    font-size: 14px;
}

.project-description {
    font-size: 14px;
    color: var(--black);
    text-align: justify;
}

.project-info .projects-element-completion-state {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-info .projects-element-completion-state .projects-element-completion-bar {
    background-color: var(--black);
    width: 95%;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.project-info .projects-element-completion-state .projects-element-completion-bar .bar-percantage {
    /* background-color: var(--light-blue); */
    background: repeating-linear-gradient(45deg,
            rgb(0, 119, 255) 0px,
            rgb(0, 119, 255) 10px,
            rgb(0, 76, 255) 10px,
            rgb(0, 76, 255) 20px);
    filter: brightness(110%);
    height: 100%;
    width: 0%;
}

.project-info .projects-element-completion-state .projects-element-completion-bar .bar-percantage-green {
    background: var(--super-light-green) !important;
}

.bar-percantage-tasks-icon::before {
    font-size: 18px;
    color: var(--light-blue);
    margin-left: 5px;
}

.bar-percantage-money-icon::before {
    font-size: 18px;
    color: #217346;
    margin-left: 5px;
}

.project-deadline {
    font-size: 14px;
    color: #217346;
    position: absolute;
    bottom: 15px;
    right: 20px;
}

.project-deadline i {
    padding-right: 5px;
}

.project-current-user-info {
    /* height: 100% !important; */
    overflow: visible !important;
    overflow: hidden !important;
    /* height: 30%; */
    /* width: calc(100% - 22px); */
    background-color: var(--white);
    position: relative;
    /* border-radius: 10px; */
    border: 1px solid #e0e0e0;
    /* padding: 10px; */
    /* padding-top: 55px; */
    /* gap: 10px;§ */
    display: inline-flex;
    flex-direction: column;
    margin: 0 !important;
}

.project-current-user-info .projects-table-header {
    color: var(--white);
}

.project-current-user-info .projects-element:nth-child(even) {
    background-color: var(--super-light-gray);
    cursor: default;
}

.project-current-user-info .projects-element:nth-child(odd) {
    background-color: var(--white);
    cursor: default;
}

.project-current-user-info * {
    font-size: 14px;
    display: flex;
    gap: 5px;
    /* display: inline; */
}

.project-current-user-company {
    font-size: 14px;
    display: flex;
    gap: 5px;
    /* width: calc(100% - 20px); */
}

.project-files {
    margin-bottom: 0;
    margin: 0 !important;
    /* overflow-y: scroll; */
    /* min-height: 250px; */
    position: relative;
    border: none;
    /* margin-top: 29px !important; */
}

.project-file-row {
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    position: relative;
    /* outline: 2px solid rgba(red, green, blue, alpha); */
}

.project-file-row:nth-child(odd):hover {
    background-color: var(--white);
}

.project-file-row:nth-child(even):hover {
    background-color: #f9f9f9;
}

.project-file-row-deleted {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.file-history-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background-color: var(--white); */
    z-index: 99999;
    border-radius: 10px;
    overflow: hidden;
    min-width: 280px;
    /* max-height: 516px; */
    /* box-shadow: 0 4px 6px var(--shadow); */
}

.file-history-modal-header {
    background-color: var(--black);
    color: var(--white);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    /* border: 1px solid var(--black); */
}

#file-history-filename {
    width: 100%;
}

.file-history-modal-close-button {
    color: var(--red);
    cursor: pointer;
    box-shadow: 0 4px 6px var(--shadow);
}

#file-history-rows {
    overflow-y: scroll;
    max-height: 488px;
    /* padding-bottom: 20px; */
}

.file-history-name-container {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.file-history-date-container,
.file-history-time-container {
    display: inline-flex;
    gap: 5px;
    margin-right: 10px;
}

.file-history-icon::before {
    font-size: 12px;
    color: var(--light-blue);
}

.project-files-history-modal-row {
    padding: 10px 15px;
    font-size: 12px;
}

.project-files-history-modal-row {
    border: none;
}

.project-files-history-modal-row:nth-child(even) {
    background-color: var(--white);
}

.project-files-history-modal-row:nth-child(odd) {
    background-color: rgb(249, 249, 249);
}

.contract-row {
    border-radius: 10px;
    background-color: rgb(207, 228, 251) !important;
    outline: 1px solid rgb(59, 149, 247);
    outline-offset: -4px;
    /* border: 2px solid rgb(14, 118, 237); */
}

/* .contract-row div:first-child {
    padding-left: 5px;
} */

.invoice-row {
    border-radius: 10px;
    background-color: rgb(255, 249, 233) !important;
    outline: 1px solid rgb(245, 169, 47);
    outline-offset: -4px;
}

.invoice-row .files-element-name {
    text-indent: 20px;
}

.payment-row {
    border-radius: 10px;
    background-color: rgba(219, 246, 219) !important;
    outline: 1px solid rgb(65, 156, 62);
    outline-offset: -4px;
}

.payment-row .files-element-name {
    text-indent: 40px;
}

.contract-row:hover {
    background-color: rgb(207, 228, 251) !important;
}

.invoice-row:hover {
    background-color: rgb(255, 249, 233) !important;
}

.payment-row:hover {
    background-color: rgba(219, 246, 219) !important;
}

.blink-red {
    animation: blinkRed 1s ease;
}

@keyframes blinkRed {
    0% {
        background-color: rgba(255, 0, 0, 0.4);
    }

    100% {
        background-color: transparent;
    }
}


.project-files-document-type-buttons {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    /* position: absolute;
    top: 0;
    left: 20px;
    transform: translateY(-90%); */
    z-index: 9;
    display: inline-flex;
    text-transform: uppercase;
    margin-left: 20px;
}

.project-files-document-type-button {
    position: relative;
    padding: 8px 25px;
    background-color: var(--white);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    color: var(--blacks);
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, z-index 0.5s;
    z-index: 1;
    /* transform: translateZ(0); */
    /* Default behind the active one */
}

.project-files-document-type-button .icon::before {
    color: var(--light-blue);
    font-size: 18px;
    height: 18px;
    padding-left: 10px;
}

.project-files-document-type-button .icon {
    height: 19px;
}

.project-files-document-type-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, var(--shadow) 100%);
    pointer-events: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.project-files-document-type-button:hover {
    background-color: #eef6ff;
}

.project-files-document-type-buttons .active {
    background-color: var(--black);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* transform: scale(1.02); */
    z-index: 10;
    /* backface-visibility: hidden; */
}

.selected-files-options {
    transform: translateY(100%);
    width: 0px;
    height: 45px;
    overflow: hidden;
    transition: transform 0.3s ease, width 0.3s ease;
}

.selected-files-options.active {
    display: flex;
    transform: translateY(0%);
    width: 100px;
}

.selected-files-download,
.selected-files-delete {
    height: 35px;
    width: 35px;
    padding: 0;
}

.selected-files-delete {
    background-color: var(--red);
}

.selected-files-download i,
.selected-files-delete i {
    font-size: 14px;

}

.file-checkbox {
    padding: 0 !important;
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.files-table-elements-wrapper {
    position: relative;
    /* Keeps all sections in the same layout space */
    /* overflow: hidden; */
    /* Prevents sudden height jumps */
    transition: height 0.3s ease;
    padding-bottom: 10px;
    /* Smooth height change */
}

.files-table-elements-div {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.files-table-elements-div.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.project-teams {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-self: flex-start;
    width: 40%;
}

.project-company-team {
    display: flex;
    min-width: 400px;
    box-shadow: 0 4px 6px var(--shadow);
}

.project-team-table {
    width: calc(100% - 2px);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2f302f;
}

.project-team-header {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    font-size: 14px;
    padding: 10px 15px;
}

.project-team-element {
    color: var(--light-gray);
    font-size: 12px;
    padding: 10px 15px;
    display: flex;
    /* justify-content: space-between; */
    position: relative;
    text-align: center;
}

.project-team-table .project-team-element:nth-child(odd) {
    background-color: var(--black);
}

.project-team-table .project-team-element:nth-child(even) {
    background-color: #2f302f;
}

.project-team-table .project-team-element-invite-user {
    padding: 7px 15px;
}

.project-team-table .project-team-element-invite-user i {
    font-size: 14px;
}

.project-team-table .project-team-element-invite-user:hover i {
    color: var(--light-blue);
}

.project-team-table .project-team-element .project-team-element-delete-button {
    /* padding: 0 5px; */
    position: absolute;
    right: 0;
    top: 0;
    padding: 0 10px;
    height: 100%;
}

/* .project-team-table .project-team-element .project-team-element-delete-button:hover {
    background: var(--red);
    color: var(--white);
} */

.project-team-element-delete-button .files-delete-div {
    padding: 0;
}

.project-team-element-delete-button .files-delete-div:hover {
    background-color: transparent !important;
}

.project-team-element-delete-button .files-delete-trigger {
    height: 41px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.files-delete-trigger:hover .files-delete-icon {
    color: var(--red) !important;
}

.project-team-element-delete-button .files-delete-trigger i {
    font-size: 14px;
    color: var(--light-gray);
}

.project-team-element-delete-button .files-confirm-icon,
.project-team-element-delete-button .files-decline-icon {
    color: var(--white);
    font-size: 14px;
}

.project-team-element-delete-button .confirm-button,
.project-team-element-delete-button .decline-button {
    padding: 5px;
}

.project-team-element-delete-button .confirm-button:hover {
    background-color: var(--super-light-green);
    /* opacity: 0.5; */
    color: var(--white) !important;
}

.project-team-element-delete-button .decline-button:hover {
    background-color: var(--red);
    /* opacity: 0.5; */
    color: var(--white) !important;
}

.project-team-element-delete-button .delete-confirm-options {
    gap: 4px;
    margin-left: 0px;
    transform: translateX(0px);
    /* opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease; */
}

.project-team-element-delete-button .confirm-active {
    width: 80px;
    /* Adjust width as needed */
}

.project-team-manager-icon-div {
    height: 20px;
}

.project-team-manager-icon::before {
    color: var(--light-blue);
    font-size: 20px;
    height: 20px;
    padding: 0 5px;
}

.project-team-current-user {
    /* height: 10px !important; */
}

.project-team-current-user::before {
    font-size: 10px;
    height: 10px;
    color: var(--ultra-light-green);
    padding-right: 5px;
}

.project-team-table-white {
    border-color: #e0e0e0 !important;
}

.project-team-table-white .project-team-element {
    color: var(--black) !important;
}

.project-team-table-white .project-team-element:nth-child(odd) {
    background-color: var(--super-light-gray) !important;
}

.project-team-table-white .project-team-element:nth-child(even) {
    background-color: var(--white) !important;
}

/* ============ Project Tasks ============ */
.tasks-panel {
    /* width: calc(100% - 42px); */
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.task-panel-background {
    box-shadow: 0 4px 6px var(--shadow);
    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 20px;
    padding-top: 60px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100vh - 150px);
    width: calc(50% - 20px) !important;
}

.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tasks-panel-header {
    border: 1px solid var(--dark-gray);
    background-color: var(--black);
    color: var(--super-light-gray);
    display: flex;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 3px var(--shadow);
    z-index: 10;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 30px);
    text-transform: uppercase;
}

.tasks-panel-header i::before {
    padding-left: 5px;
    font-size: 18px;
    /* height: 16px; */
    color: var(--light-blue);
    /* display: flex;
    justify-content: center;
    align-items: center; */
}

.task-widget {
    background-color: var(--super-light-gray);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    /* padding-bottom: 0; */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 6px var(--shadow);
    position: relative;
}

.task-widget-add-task {
    padding: 20px !important;
    box-shadow: none;
    cursor: pointer;
}

.task-widget-add-task:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    border-color: #d0d0d0;
}

.task-widget-name {
    display: flex;
    justify-content: center;
    align-items: center;
}

.task-panel-background .task-widget-name {
    display: inherit;
    justify-content: start;
    align-items: start;
}

.task-widget-project-name {
    padding: 3px 5px;
    border: 2px solid var(--light-blue);
    border-radius: 5px;
    font-size: 14px;
}

.task-widget-description {
    font-size: 12px;
    color: var(--gray);
}

.task-widget-deadline {
    color: #217346;
    display: flex;
    align-items: center;
}

.task-widget-deadline i {
    padding-right: 5px;
}

.task-widget-status {
    display: flex;
    align-items: center;
}

.task-widget-status i::before {
    color: #217346;
    font-size: 18px;
    padding: 0 5px;
}

.task-widget .add-new-task {
    font-size: 25px;
    color: var(--light-blue);
}

.task-widget-dependencies {
    display: flex;
    font-size: 14px;
}

.task-widget-more-button {
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--light-blue);
    font-weight: bold;
    font-size: 20px;
    user-select: none;
}

.task-widget-more-button i {
    transition: transform 0.3s ease;
}

.task-widget-more-button i.rotated {
    transform: rotate(180deg);
    /* Rotate the arrow */
}

.task-widget-more-button i:hover {
    filter: brightness(85%);
}

.task-widget-team {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

/* Expanded state */
.task-widget-team.open {
    max-height: 500px;
}

.task-widget-team .project-team-element-download {
    display: flex;
    gap: 10px;
    position: relative;
}

.task-widget-team .project-task-upload-file i {
    height: 16px !important;
}

.task-widget-team .project-task-upload-file i::before {
    font-size: 16px !important;
    height: 16px !important;
    color: var(--light-blue);
}

.task-widget-team .project-team-element-download:hover {
    background-color: #eef6ff !important;
}

.task-widget-team .project-team-element-download .bi-download::before {
    color: var(--light-blue);
}

.task-widget-team .project-team-element-download .files-delete-div {
    top: 0;
}

.task-widget-edit-button {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    height: 20px;
}

.task-widget-edit-button:hover {
    background-color: #eef6ff;
}

.task-widget-edit-button i {
    height: 20px;
}

.task-widget-edit-button i::before {
    color: var(--light-blue);
    font-size: 20px;
    height: 20px;
}

.change-task-completion-state-button.hidden {
    display: none;
}

.project-task-search {
    display: flex;
    gap: 10px;
}

.project-task-search input {
    background-color: var(--super-light-gray);
}

.project-task-search .dropdown-activator {
    background-color: var(--super-light-gray) !important;
    text-align: start;
}

.project-task-search .projects-search-input-container {
    width: 100% !important;
}

.project-tasks-sort-dropdown {
    width: calc(15% - 10px) !important;
}

.project-tasks-sort-dropdown input {
    margin: 0;
    width: calc(100% - 48px);
    min-width: 72px;
    font-size: 12px !important;
}

/* ============ Upload File Modal ============  */
.upload-file-modal,
.upload-file-modal-task {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1001;
    width: 550px;
    /* display: flex; */
    /* justify-content: center;
    flex-direction: column; */
}

.upload-file-modal-visible {
    display: block;
}

.upload-file-modal .add-project-choose-and-add-file,
.upload-file-modal-task .add-project-choose-and-add-file {
    padding: 12px;
}

.upload-file-modal-button,
.upload-file-modal-task-button {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

/* ============ Upload File Modal ============  */
.upload-image-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1001;
    width: 550px;
}

.upload-image-modal-visible {
    display: block !important;
}

.upload-image-modal .add-project-choose-and-add-file {
    padding: 12px;
}

.upload-image-modal-button {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

/* ============ Add Task Modal ============  */
.add-task-modal {
    position: absolute;
    padding: 10px;
    width: 55%;
    height: 80%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 6px var(--shadow);
    display: none;
    overflow: hidden;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    background-color: var(--white);
    padding: 10px;
    padding-top: 30px;
    border: 1px solid #e0e0e0;
}

.add-task-inside-panel {
    position: panel;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    background-color: var(--blue-white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding-top: 15px;
}

.add-task-modal-close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    color: var(--red);
}

.add-task-modal-close-button:hover {
    filter: brightness(85%);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    height: 100vh;
    width: 100vw;
    display: none;
}

.modal-overlay.show {
    display: block;
}

.add-task-employee-panel {
    width: 100%;

}

.add-task-employee {
    width: 100%;
    position: relative;
}

.add-task-employee input {
    width: calc(100% - 40px);
}

.add-task-employee .custom-input-full-width {
    width: calc(100% - 30px) !important;
}

.add-task-employee-button {
    position: absolute;
    height: 30px;
    width: 30px;
    padding: 0;
    right: 10px;
    top: 7px;
}

.add-task-submit-button-div {
    margin: 20px 0;
}

/* ============ Images Grid ============  */
.project-images-panel {
    width: 100%;
    overflow-y: scroll;
    /* max-height: 540px; */
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    height: 100%;
    /* flex-grow: 1; */
}

.project-images {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    /* Reduced size */
    gap: 12px;
    /* Slightly smaller gap */
    padding: 12px;
    border-radius: 10px;
    justify-items: center;
    align-items: start;
    box-sizing: border-box;
}

.project-panel-column .project-images {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
}

.project-panel-column .project-image-container {
    max-width: none !important;
}

.project-images>* {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    /* Maintains original shape */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.project-images .project-image-container {
    width: 100%;
    /* max-width: 140px; */
    /* Ensures images remain smaller */
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    cursor: pointer;
    transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.project-images .project-image-container:hover {
    filter: brightness(85%);
}

.project-images .project-image-upload-button {
    height: 100%;
    background-color: var(--super-light-gray);
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-images .project-image-container:has(.project-image-upload-button) {
    border: 1px solid #e0e0e0 !important;
}

.project-images .project-image-upload-button i {
    font-size: 25px;
    color: var(--light-blue);
}

.project-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------> // ============== Images Select Style ============= //
/* ???????? ?? ?????????? ?? default */
.image-checkbox {
    display: none !important;
}

/* ?????? ??? ? select-mode ? ????????? ?? */
.select-mode .show-checkbox .image-checkbox {
    display: block !important;
    position: absolute;
    top: 6px;
    left: 6px;
    transform: scale(1.2);
}

.selectable-thumb {
    position: relative;
    cursor: pointer;
}

/* ????? ? ???????? */
.image-actions-bar {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    gap: 8px;
    z-index: 200;
}

.image-actions-bar.show {
    display: flex;
}


/* ============ Image Right Click Menu ============  */
.custom-menu {
    position: absolute;
    display: none;
    background: var(--white);
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px var(--shadow);
    border-radius: 10px;
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
}

.custom-menu .menu-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-menu .menu-item:nth-child(odd) {
    background-color: var(--white);
}

.custom-menu .menu-item:nth-child(even) {
    background-color: var(--super-light-gray);
}

.custom-menu .menu-item:hover {
    background: #eef6ff;
}

.menu-icon::before {
    font-size: 16px;
}

#confirmImageDelete .menu-icon {
    color: var(--super-light-green);
}

#cancelDelete .menu-icon {
    color: var(--red);
}

/* =========== Image Overlay =========== */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.image-overlay.hidden {
    display: none;
}

.overlay-content {
    position: relative;
    text-align: center;
    background-color: var(--white);
    display: flex;
    padding: 10px;
    padding-top: 30px;
    height: 80vh;
    border-radius: 10px;
}

.overlay-content img {
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
}

.overlay-content i {
    font-size: 16px;
    color: var(--red);
}

#closeOverlay {
    position: absolute;
    top: 5px;
    right: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* ==================================== */
.add-project-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: var(--blue-white);
    margin: 15px;
    border-radius: 15px;
    width: calc(100% - 277px);
    height: calc(100vh - 70px);
    gap: 20px;
    overflow-y: auto;
}

.add-project-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    padding: 20px;
    width: 70%;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow);
}

.add-project-form {
    /* margin: 10px; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.add-project-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    width: 100%;
}

.add-project-inputs {
    display: inline;
    width: 70%;
}

.add-project-right-div {
    width: 30%;
}

.add-project-files-div {
    /* width: 30%; */
}

.add-project-text-area {
    resize: none;
    height: 200px !important;
}

.add-project-employee {
    position: relative;
}

.add-project-companies-and-employees {
    display: flex;
}

.add-project-company-div {
    width: 50%;
}

.add-project-employee-button {
    position: absolute;
    /* border-radius: 3px; */
    height: 25px;
    width: 25px;
    padding: 0;
    right: 25px;
    top: 8.5px;
    font-size: 16px;
    /* padding: 5px; */
    text-align: center;
}

.add-project-employee-list-div {
    max-height: 360px;
    overflow-y: scroll;
    padding: 0;
    /* margin: 5px; */
    /* border-radius: 3px; */
}

.add-project-employee-list {
    margin: 7px;
    margin-right: 12px;
    /* width: 100%; */
    font-size: 14px;
    color: var(--light-gray);
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 6px var(--shadow);
}

/* .add-project-employee-list tr:hover .add-project-employee-list-remove {
    display: flex;
} */

.add-project-employee-list tr td {
    padding: 8px;
    font-size: 13px;
}

.add-project-employee-list tr:nth-child(odd) {
    background-color: var(--black);
}

.add-project-employee-list tr:nth-child(even) {
    background-color: #2f302f;
    /* color: var(--blue-white); */
}

.add-project-employee-list-remove {
    color: var(--light-gray);
    height: 14px;
    /* display: none; */
}

.add-project-employee-list-remove i::before {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-project-employee-list-remove:hover {
    color: var(--red);
}

.employee-added {
    background-color: var(--super-light-green) !important;
    color: var(--black);
    pointer-events: none;
}

.add-project-files {
    /* width: 340px; */
    width: 100%;
    filter: drop-shadow(0 4px 6px var(--shadow));
}

.add-project-choose-and-add-file {
    margin: 0px;
    padding: 5px 10px;
    margin-bottom: 0;
    background-color: var(--black);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
}

.add-project-choose-and-add-file:hover {
    cursor: pointer;
}

.add-project-choose-and-add-file-text {
    font-size: 12px;
    color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.add-project-choose-and-add-file-text,
.info-icon {
    flex-shrink: 0;
    /* Prevents elements from shrinking */
    flex-grow: 0;
    /* Prevents elements from stretching */
    white-space: nowrap;
    /* Prevents text from wrapping */
}

.info-icon {
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
}

.info-icon::before {
    font-size: 16px;
    height: 16px;
    width: 16px;
    /* Ensures the icon stays its natural size */
    color: var(--light-blue);
    display: inline-block;
    vertical-align: middle;
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
}

.add-project-added-files {
    height: 300px;
    /* border: 10px solid var(--white); */
    /* border: 1px solid #e0e0e0; */
    margin: 0 1px;
    margin-bottom: 20px;
    padding: 15px 10px;
    font-size: 12px;
    overflow-y: auto;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background-color: var(--white);
    /* box-shadow: inset 0 -4px 6px var(--shadow); */
    /* outline: 1px solid #e0e0e0; */
}

/* Add border to table row */
.file-table tbody tr {
    border: 1px solid #e0e0e0;
    background-color: var(--super-light-gray);
    /* border-radius: 10px; */
}

/* Apply padding to table cells instead of rows */
.file-table tbody tr td {
    /* padding: 10px; */
    padding: 5px 0;
    padding-left: 10px;
    /* Add padding to the td elements */
    /* background-color: var(--super-light-gray); */
}

/* Apply border-radius to the first and last cell to create rounded effect */
.file-table tbody tr td:first-child {
    /* border-top-left-radius: 10px;
    border-bottom-left-radius: 10px; */
}

.file-table tbody tr td:last-child {
    /* border-top-right-radius: 10px;
    border-bottom-right-radius: 10px; */
    padding-right: 10px;
}

.file-table-dropdown-input {
    box-shadow: none;
    width: 70px !important;
    padding-top: 5px;
    padding-bottom: 5px;
    margin: 0;
}

.file-table-invoice-value-input,
.file-table-ref-document-input {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 10px;
    /* padding: 5px; */
    margin: 0;
    width: 70px;
}

.small-input-dropdown-wrapper {
    top: 40px;
}

.width-dropdown-wrapper {
    width: auto !important;
    right: -20px;

    /* overflow-y: auto; */
}

.custom-dropdown-options-panel-width {
    max-height: 150px;
}

.file-type-column {
    width: 70px;
    display: flex;
    gap: 5px;
    transition: width 0.3s ease;
}

.file-table-file-name {
    max-width: 60px;
    padding-right: 10px !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}



.add-project-save-button-div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.add-project-save-button {
    color: var(--white);
}

@media only screen and (max-width: 1300px) {

    .add-project-top {
        flex-direction: column;
    }

    .add-project-inputs {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .add-project-right-div {
        width: 100%;
    }

    .add-project-files-div {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }

    .add-project-companies-and-employees {
        /* flex-direction: row; */
        width: 100%;
    }

    .add-project-company-div .custom-dropdown {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .add-project-employee {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .custom-dropdown-options-wrapper {
        /* align-self: flex-end; */
        /* top: auto; */
        left: 9px;
    }

    .add-project-save-button-div {
        flex-basis: 100%;
        /* Take the full width of the container */
        display: flex;
        justify-content: center;
        margin: 10px 0;
        order: 1;
    }
}

@media only screen and (max-width: 800px) {

    .add-project-files {
        width: calc(100% - 20px) !important;
    }

    .add-project-companies-and-employees {
        flex-direction: column;
        width: 100%;
    }

    .add-project-company-div {
        width: 100%;
    }

    .add-project-files-div {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .add-project-files {
        width: 100%;
    }
}

.left-inputs,
.right-inputs,
.center-inputs {
    margin: 5px 10px;
    display: flex;
    flex-direction: column;
}

.add-project-files-list-remove {
    display: flex;
    /* text-align: justify; */
    display: flex;
    justify-content: center;
}

.remove-file-x {
    display: flex !important;
    color: var(--red);
    font-size: 15px;
    cursor: pointer;
}

/* .remove-file-x:hover {
    color: red;
} */

.file-type-icon::before {
    font-size: 20px !important;
    /* padding-right: 5px; */
}

.bi-file-earmark-pdf {
    color: #FF6F00;
    font-size: 20px;
}

.bi-file-earmark-word {
    color: #2B579A;
    font-size: 20px;
}

.bi-file-earmark-excel {
    color: #217346;
    font-size: 20px;
}

.bi-filetype-png {
    color: #3b74ed;
    font-size: 20px;
}

.bi-filetype-jpg {
    color: #5008bd;
    font-size: 20px;
}

.bi-filetype-svg {
    color: #ffc929;
    font-size: 20px;
}

.bi-filetype-gif {
    color: #9c04c2;
    font-size: 20px;
}

.bi-filetype-bmp {
    color: #c21d04;
    font-size: 20px;
}

.create-company-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px var(--shadow);
}

.inputs-panel-create-company {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.inputs-panel-register {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.create-company-text-area {
    height: 200px !important;
}

.main-inputs,
.secondary-inputs {
    display: flex;
    flex-direction: column;
}

/* New Project Page Style */
.project-panel *,
.projects-panel * {
    font-size: 12px;
}


.project-subnav a {
    color: var(--white);
}

.project-subnav {
    position: sticky;
    top: 0;
    padding: 8px 0;
    margin-bottom: 15px;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    z-index: 5;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    background-color: var(--black);
    color: var(--white);
}

.project-page-title {
    top: 0;
    padding: 8px 0;
    margin-bottom: 15px;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    z-index: 5;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
    background-color: var(--black);
    color: var(--white);
}

.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); */
}

.card.transparent {
    background: transparent !important;
}

.card.glass {
    background: rgba(255, 255, 255, 0.1);
    /* ???? ??????????? */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* ????????? ?????? */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* ???? ????? ?? ????????? */
    border-radius: 15px;
    transition: all 0.3s ease;
}

.glass {
    background: rgba(255, 255, 255, 0.1);
    /* ???? ??????????? */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* ????????? ?????? */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* ???? ????? ?? ????????? */
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* .card.glass:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
} */


.graphic-card {
    display: flex;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* ========================= */

:root {
    --card: #fff;
    --line: #eee;
    --muted: #666;
    --ink: #111;
    --accent: #4f46e5;
    --bg: #fafafa;
}

/* * {
    box-sizing: border-box
} */

/* body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif
} */

main {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px
}

/* .project-subnav {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 8px 0;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    z-index: 5
} */

.project-subnav a {
    /* color: #444; */
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px
}

.project-subnav a:hover {
    background: #333;
    color: var(--white);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px
}

.project-title {
    font-size: 18px;
    padding-bottom: 10px;
    margin: 0
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


.td-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badges .badge:first-child,
.td-badges .badge:first-child {
    margin-left: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: #eef;
    color: #224;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    text-align: center;
    max-height: 21px;
    cursor: pointer;
    position: relative;
    /* white-space: nowrap; */
    /* ? ????????? ??????????? ?? ?????? */
}

.badge.transparent-blue .badge-you-medal {
    font-size: 8px;
    color: white;
    background-color: var(--light-blue);
    padding: 3px 4px;
    border-radius: 10px;
    position: absolute;
    top: -12px;
    right: -5px;
}

.badge .badge-you-medal {
    font-size: 8px;
    color: white;
    background-color: var(--accent);
    padding: 3px 4px;
    border-radius: 10px;
    position: absolute;
    top: -12px;
    right: -5px;
}

.badge.transparent-blue {
    background: rgba(14, 118, 237, 0.3);
    /* ????? */
    color: var(--black);
    /* ??????? ???? */
}

.badge.supervisor {
    /* outline: 2px dashed var(--yellow);
    outline-offset: -2px; */
    background-color: rgba(79, 70, 229, 0.5);
}

/* ???????? ??????? */
.badge-gray {
    background-color: #f2f2f2;
    /* ???? */
}

.badge-yellow {
    outline: 2px dashed #e0b710;
    outline-offset: -2px;
    /* ?????/???????? */
    background-color: transparent;
    color: #000;
    /* ??-????? ???????? */
}

.badge-green {
    background-color: var(--super-light-green);
    color: #f2f2f2;
    /* ?????? */
}

.badge-red {
    background-color: var(--red);
    color: #f2f2f2;
    /* ?????? */
}

.badge-blue-text {
    color: var(--light-blue);
}

.meta {
    color: var(--muted);
    margin-left: 8px
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px
}

.progress-item .label {
    font-weight: 600;
    margin-bottom: 6px
}

.progress-item .bar {
    background: #f2f2f2;
    height: 10px;
    border-radius: 8px;
    overflow: hidden
}

.progress-item .fill {
    height: 10px;
    background: var(--accent)
}

.progress-item .meta {
    margin-top: 6px;
    font-size: 12px
}

.input {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(14, 118, 237, 0.15);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: #0f0f0f;
    outline: none;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.input::placeholder {
    color: rgba(0, 0, 0, 0.4);
    transition: color 0.25s ease;
}

.input:focus {
    border-color: #0e76ed;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 6px rgba(14, 118, 237, 0.3);
}

.input:focus::placeholder {
    color: rgba(0, 0, 0, 0.2);
}


.input-wrapper {
    width: 100%;
    /* width: auto; */
    position: relative;
    display: flex;
    justify-content: center;
    /* display: inline-block; */

}

.input-wrapper .input {
    padding-left: 35px;
    /* ????? ?? ??????? */
    height: 36px;
    box-sizing: border-box;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
    z-index: 100;
}

.btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

.btn.blue {
    background-color: var(--light-blue);
    color: var(--white);
    border: none;
}

.btn.red {
    background-color: var(--red);
    color: var(--white);
    border: none;
}

.btn.transparent {
    background-color: transparent;
    color: var(--black);
    border: none;
}

.btn:hover {
    filter: brightness(95%);
}

.btn-icon {
    height: 32px;
    width: 32px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-icon-small {
    height: 22px;
    width: 22px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-icon i {
    font-size: 14px;
}

/* Tasks */
.tasks-table .thead {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.5fr 1.5fr 1.5fr 0.1fr;
    gap: 8px;
    padding: 8px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}



.tasks-table .tbody .tr {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.5fr 1.5fr 1.5fr 0.1fr;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid var(--line)
}

.tr-btn {
    transition: background-color 0.2s;
    border-radius: 10px;
    margin: 2px 0;
    border: none !important;
}

.tr-btn:hover {
    background: #f0f0f0;
    cursor: pointer;
}

.table-icon-btn {
    color: var(--light-gray);
    font-size: 14px;
}

.table-icon-btn.blue:hover {
    color: var(--light-blue) !important;
    cursor: pointer;
}

.table-icon-btn.red:hover {
    color: var(--red) !important;
    cursor: pointer;
}

.files-cell {
    max-width: 260px;
}

.files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.file-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    color: var(--black);
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.file-link-contract {
    outline-offset: -2px;
    outline: 1px solid rgb(59, 149, 247);
    background-color: rgb(207, 228, 251);
}

.file-link-invoice {
    outline-offset: -2px;
    background-color: rgb(255, 249, 233);
    outline: 1px solid rgb(245, 169, 47);
}

.file-link-payment {
    outline-offset: -2px;
    background-color: rgba(219, 246, 219);
    outline: 1px solid rgb(65, 156, 62);
}

.file-link:hover {
    background: #e5e7eb;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.no-files {
    color: var(--dark-gray);
    font-size: 12px;
    opacity: 0.6;
}


.chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f6f6f6;
    margin: 0 4px 4px 0;
    font-size: 12px
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: 3fr 3fr;
    gap: 16px;
}

.team-col-title {
    padding-bottom: 15px;
}

.avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    /* ????? ?????? ?????????? */
}

.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    /* ??????? ??????? */
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #333;
    /* transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; */
    transition: filter 0.2s ease-in-out;
    cursor: default;
    /* ?????? ???? ???? */
}

.avatar:hover {
    /* background: #f6f6f6; */
    /* ????? ??-????? */
    /* transform: scale(1.05); */
    /* ??? zoom */
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); */
    cursor: pointer;
    filter: brightness(95%);
    /* ?????????, ?? ? ?????? ?? ? ???????? */
}

.avatar span {
    text-transform: uppercase;
}

.avatar-wrapper small {
    margin-top: 4px;
    font-weight: 500;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}


/* Files */
.tabs {
    display: flex;
    gap: 6px
}

.tab {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer
}

.tab.is-active {
    background: #f3f3ff;
    border-color: #dadaff
}

.files-table .thead {
    display: grid;
    /* grid-template-columns: 2fr 1fr 1.5fr 1.5fr; */
    gap: 8px;
    padding: 8px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.thead-docs {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 0.3fr;
}

.files-table .tbody .tr {
    display: grid;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid var(--line)
}

.files-table .tr>div {
    display: flex;
    align-items: center;
}

.tbody-docs .tr {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr 0.3fr;
}

.tbody-finance .tr,
.thead-finance {
    grid-template-columns: 2fr 0.8fr 0.8fr 1.2fr 1.2fr 0.8fr 0.4fr;
}

.files-table-checkboxes .thead-finance,
.files-table-checkboxes .tbody-finance .tr {
    grid-template-columns: 0.1fr 1.9fr 0.8fr 0.8fr 1.2fr 1.2fr 0.8fr 0.4fr !important;
}

.files-table-checkboxes .thead-docs,
.files-table-checkboxes .tbody-docs .tr {
    grid-template-columns: 0.1fr 1.9fr 1fr 1.5fr 1.5fr 0.3fr !important;
}

.file-actions {
    display: flex;
    /* ?????? flex, ?? ?? ?? ????? layout */
    gap: 8px;
    /* margin-left: auto; */

    opacity: 0;
    transform: translateY(-4px);
    visibility: hidden;
    pointer-events: none;
    /* ?? ?? ?? ????????, ?????? ?? ?????? */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.file-actions.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}


.file-row-controls {
    justify-content: end;
}

/* Images */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px
}

.thumb {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff
}

.thumb.add-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--light-blue);
    background: transparent;
    cursor: pointer;
    height: 120px;
    width: 160px;
    transition: background-color 0.2s, border-color 0.2s;
}

.add-group-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--light-blue);
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
}

.add-group-btn:hover {
    background-color: #eef6ff;
}


.thumb.add-thumb:hover {
    background-color: #eef6ff;
    border-color: var(--blue);
}

.thumb.add-thumb i {
    font-size: 24px;
    color: var(--light-blue);
}

.thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block
}

.group-title {
    margin: 10px 0;
    border-bottom: 1px solid var(--line);
}

/* Analytics */
.chart-placeholder {
    height: 280px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-top: 12px
}

@media (max-width:900px) {
    .progress-grid {
        grid-template-columns: 1fr
    }

    .team-grid {
        grid-template-columns: 1fr
    }

    .tasks-table .thead,
    .tasks-table .tbody .tr {
        grid-template-columns: 1.8fr 0.5fr 0.5fr 2fr 1fr 0.2fr;
    }
}

.projects-element-completion-state {
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
    align-items: start;
    /* margin-bottom: 25px; */
}

.projects-element-completion-state .projects-element-completion-bar {
    position: relative;
    background-color: #f2f2f2;
    width: 100%;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.projects-element-completion-state .projects-element-completion-bar .bar-percantage {
    /* background-color: var(--light-blue); */
    background: repeating-linear-gradient(45deg,
            rgb(0, 119, 255) 0px,
            rgb(0, 119, 255) 10px,
            rgb(0, 76, 255) 10px,
            rgb(0, 76, 255) 20px);
    filter: brightness(110%);
    height: 100%;
    width: 0%;
}

.projects-element-completion-percentage {
    padding: 5px;
    color: #666666;
}

.bar-percantage.bar-percantage-green {
    background: var(--super-light-green) !important;
}

.bar-percantage.bar-percantage-yellow {
    background: #e0b710 !important;
    height: 100%;
    border-radius: 10px 0 0 10px;
    position: relative;
    z-index: 1;
}

.bar-pause {
    position: absolute;
    top: 0;
    height: 100%;
    background: #d9534f;
    /* Bootstrap ??????? */
    opacity: 0.75;
    z-index: 2;
    /* ??? ??????? */
    pointer-events: none;
    /* ?? ?? ?????? ?? ?????/??????? */
}

/* Add Task Modal */
.modal {
    display: none;
    /* ?????? ?? ???????????? */
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    z-index: 100;
    overflow: auto;
    overscroll-behavior: contain;
}

.modal.show {
    display: flex;
    /* ??????? ?? ??? ???????? */
}

html:has(.modal.show) {
    overflow: hidden;
    height: 100%;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal-card {
    position: relative;
    background: var(--card);
    /* border: 1px solid var(--line); */
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;

    /* ????: outline */
    outline: 1px solid var(--line);
    /* outline-offset: -10px; */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    max-height: 800px;
}

.modal-card-large {
    max-width: 650px;
}

.modal-card-extra-large {
    max-width: 1100px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ????: ?????????? label -> input */
.modal-body label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.btn-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    background: var(--light-blue);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    filter: brightness(101%);
}

.btn-red {
    background-color: var(--red);
    color: #fff;
    border: none;
}

.btn-red:hover {
    filter: brightness(101%);
}

/* #confirmModal .modal-card {
    max-width: 360px;
    outline: 1px solid var(--line);
    outline-offset: -2px;
}

#confirmModal .modal-body p {
    margin: 0;
    color: var(--muted);
} */

/* Edit Task Page */
.form-section label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    /* font-weight: 500; */
    color: var(--muted);
}

.section-title {
    font-size: 16px;
    margin: 20px 0 10px;
    font-weight: 600;
}

.badge.selected {
    outline: 2px solid var(--accent);
}

.badge.transparent-blue.selected {
    outline: 2px solid var(--light-blue);
}

.files-list-select,
.tasks-list-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-option,
.task-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    background: #fafafa;
}

.file-option:hover,
.task-option:hover {
    background: #f3f3f3;
}

/* Custom Checkbox */
/* Hide default checkbox */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    vertical-align: middle;
}

/* Hover effect */
.custom-checkbox:hover {
    border-color: var(--light-blue);
}

/* Checked state */
.custom-checkbox:checked {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
}

/* Add checkmark */
.custom-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Add Files Popup */
.selected-files-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.selected-file {
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 8px;
    background: #fafafa;
}

.selected-file .file-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    /* ?? ?? ?? ????? */
}

.selected-file .extra-fields {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}

.selected-file .small-input {
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: 100px;
    /* ????????? ??????, ?? ?? ??????? ???? */
}

.selected-file .file-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.file-meta input,
.file-meta select {
    width: 100% !important;
}



.selected-file .file-info i {
    font-size: 16px;
}

.selected-file .file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.remove-file {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #888;
    position: absolute;
    top: 3px;
    right: 10px;
}

.remove-file:hover {
    color: #333;
}

.file-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
    margin-right: 10px;
}

.file-type-select {
    padding: 4px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 12px;
}

.extra-fields {
    display: flex;
    gap: 6px;
}

.small-input {
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: auto;
}

.drop-zone {
    border: 2px dashed var(--line);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    margin-bottom: 12px;
}

.drop-zone.dragover {
    background: #f3f4f6;
    border-color: var(--accent);
    color: var(--accent);
}

.drop-zone .browse-text {
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
}

/* Add Images Modal */
.drop-zone {
    border: 2px dashed var(--light-blue);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.drop-zone.dragover {
    background-color: rgba(79, 70, 229, 0.05);
    border-color: var(--accent);
}

.selected-files-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selected-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: #fafafa;
    gap: 10px;
}

.selected-image .preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.selected-image .meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.selected-image .remove-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--red);
    cursor: pointer;
}

/* Delete Image Group Button */
.delete-group-btn,
.edit-group-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    color: var(--light-gray);
    font-size: 14px;
    transition: color 0.2s;
}

.delete-group-btn:hover {
    color: var(--red);
}

.edit-group-btn:hover {
    color: var(--light-blue);
}

/* Edit Users Style */

.team-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
    gap: 12px;
}

.team-user-row .badge {
    cursor: pointer;
}

/* .team-user-row .badge.selected {
    border: 2px solid var(--light-blue);
    background: rgba(0, 136, 255, 0.1);
} */

.role-select {
    min-width: 130px;
}

/* Custom Dropdown Menu */
select {
    appearance: none;
    /* ???? ???????????? ??????? */
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 28px 6px 10px;
    /* ????? ?? ????????? ?????? */
    /* font-size: 14px; */
    color: #333;
    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' class='bi bi-caret-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14l-4.796-5.481C1.885 5.196 2.392 4 3.553 4h8.894c1.16 0 1.668 1.196.999 1.659l-4.796 5.48a1 1 0 0 1-1.403 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;

    transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 2px rgba(0, 136, 255, 0.2);
    outline: none;
}

select:disabled {
    background-color: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

/* ======== User Info Modal =========== */
.user-badges .badge {
    margin-right: 8px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

.badge-blue {
    /* background-color: #0e76ed;
    color: #fff; */

    color: var(--light-blue);
    outline: 1px dashed var(--light-blue);
    outline-offset: -1px;
}

.badge-green {
    background-color: #4ad44a;
    color: #fff;
}

.badge-yellow-fill {
    background-color: #e0b710;
    color: #fff;
}

.user-details {
    margin-top: 20px;
    font-size: 12px;
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-details div {
    display: flex;
    align-items: center;
}

/* =========================== */
.user-badges {
    margin-top: 20px;
}

.user-badges .badge {
    margin-right: 8px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* .badge-blue {
    background-color: #0e76ed;
    color: #fff;
} */

.badge-green {
    background-color: #4ad44a;
    color: #fff;
}

.badge-yellow-fill {
    background-color: #e0b710;
    color: #fff;
}

.user-badges .badge i::before {
    font-size: 12px;
    height: 12px;
}

.card {
    width: auto;
}

.user-info {
    font-size: 12px !important;
    color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}

.company-name {
    font-size: 14px;
    color: var(--light-blue);
    margin-top: 10px;
}

.user-name {
    font-weight: bold;
    font-size: 16px;
}

.user-role {
    font-size: 12px;
    color: var(--gray);
    text-transform: uppercase;
}

.user-details {
    margin-top: 20px;
    font-size: 12px;
    color: var(--black);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-details div {
    display: flex;
    align-items: center;
}

.avatar-upload {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-upload img,
.avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--dark-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: var(--light-gray);
    outline: 2px solid var(--light-gray);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--light-blue);
    color: white;
}

.btn-secondary {
    background-color: var(--dark-gray);
    color: var(--white);
}

.btn-cancel {
    background-color: transparent;
    color: var(--light-gray);
    margin-right: 8px;
}

.user-projects-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    max-width: 550px;
    /* width: 100%; */
    background-color: var(--white);
}

.user-projects-card-title {
    border-bottom: 1px solid var(--line);
    background-color: var(--super-light-gray);
    color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    font-size: 13px;
    /* font-weight: 500; */
    /* text-transform: uppercase; */
    gap: 5px;
}

.user-projects-card-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    /* gap: 0;
        display: flex;
        flex-wrap: wrap; */
}

.user-projects-card-body .badge {
    display: inline-flex;
    align-items: center;
    margin: 5px 4px;
    font-size: 12px;
}

.user-tasks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.user-tasks-table th {
    background-color: var(--super-light-gray);
    color: var(--gray);
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid var(--line);
}

.user-tasks-table td {
    padding: 8px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.user-tasks-table tr:hover {
    background-color: var(--super-light-gray);
}

/* =========== Responsive =========== */
/* ===========================
   Responsive Sidebar (Mobile)
   =========================== */

/* @media (max-width: 1024px) {
    .nav-options {
        width: 0;
        height: 0;
        overflow: hidden;
    }

    .header-bottom {
        margin-left: auto;
        flex-direction: row !important;
        width: auto !important;
        gap: 10px;
    }

    .header {
        flex-direction: row;
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        overflow: visible;
    }

    .language-button {
        margin: 0 !important;
    }

    .nav-toggle-button {
        padding: 0 10px;
    }

    .language-dropdown {
        bottom: -220% !important;
    }

    .nav-title-pin{
        margin: 0 !important;
    }

    .header-expanded{
        width: 100% !important;
        flex-direction: column;
    }
} */

.header-mobile {
    display: none;
    /* ?? ???????????? ????? */
}

/* === ????? ?? ???????? === */
.task-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.task-card:hover {
    border-color: var(--light-blue);
    box-shadow: 0 3px 10px rgba(0, 119, 255, 0.1);
    transform: translateY(-2px);
}

/* === ????? === */
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.task-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

/* === ???? ? ?????? ?????? === */
.task-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.deadline-badge {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--super-light-gray);
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
}

.deadline-badge i {
    font-size: 13px;
}

/* === ???????? === */
.task-desc {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    line-height: 1.5;
    padding: 6px 0;
    border-left: 3px solid var(--line);
    padding-left: 10px;
}

/* === ????????? (???? + ???????) === */
.task-meta {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 8px;
    padding: 8px 0px;
    font-size: 12px;
    color: var(--gray);
}

.task-meta-block {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    flex-grow: 1;
}

.task-meta-block i {
    color: var(--light-blue);
    font-size: 14px;
}

/* === ???????? === */
.task-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.task-actions .btn {
    font-size: 12px;
    border-radius: 8px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-actions .btn i {
    font-size: 14px;
}

/* === ?????????? === */
/* .task-card.overdue {
    border-color: var(--red);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.2);
} */

/* === ????????? ?? ?????? ?????? === */
.tasks-cards {
    display: none;
    grid-template-columns: 1fr 1fr;
    /* ??? ?????? */
    gap: 15px;
}

small {
    font-weight: 400 !important;
}

@media (max-width: 1200px) {
    .tasks-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    body {
        /* background-color: var(--black); */
    }

    .project-panel * {
        box-sizing: border-box;
    }

    .modal-card {
        max-width: 75% !important;
        max-height: 60vh;
        overflow-y: auto;
    }

    .header {
        display: none !important;
    }

    .header-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        /* background: var(--black); */
        background: radial-gradient(circle at top left, #1c1c1e 0%, #0f0f0f 70%),
            linear-gradient(135deg, rgba(0, 119, 255, 0.15) 0%, transparent 100%);
        color: var(--white);
        z-index: 1000;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    .mobile-topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        padding-left: 10px;
    }

    .mobile-left,
    .mobile-center,
    .mobile-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-center {
        gap: 20px;
    }

    /* Menu button */
    .mobile-menu-btn {
        background: none;
        border: none;
        color: var(--white);
        font-size: 24px;
        cursor: pointer;
    }

    /* Logo */
    .mobile-logo {
        display: flex;
        align-items: center;
        font-weight: 700;
        font-family: 'Poppins', sans-serif;
        color: var(--white);
    }

    .mobile-logo .logo-second {
        color: var(--light-blue);
        margin-left: 2px;
    }

    /* Center icons */
    .mobile-center .mobile-icon {
        color: var(--white);
        font-size: 24px;
        text-decoration: none;
    }

    .mobile-center .mobile-icon:hover {
        color: var(--light-blue);
    }

    /* Right part */
    .mobile-right img {
        width: 22px;
        height: 22px;
        border-radius: 3px;
    }

    .mobile-profile {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--dark-gray);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-profile i {
        font-size: 18px;
        color: var(--light-blue);
    }

    /* Dropdown menu */
    .mobile-menu {
        display: flex;
        flex-direction: column;
        background: var(--black);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mobile-menu.open {
        max-height: 300px;
    }

    .mobile-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        color: var(--white);
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 14px;
    }

    .mobile-menu a:hover {
        background: #2e302e;
    }

    .mobile-menu i {
        font-size: 18px;
        color: var(--light-blue);
    }

    .mobile-lang {
        display: flex;
        align-items: center;
    }

    .nav-profile {
        width: 28px;
        overflow-x: hidden;
        justify-content: start;
        transition: width 0.2s ease-in-out;
    }

    .nav-profile-name {
        /* width: 0 !important; */
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }

    .nav-profile-logout {
        /* width: 0 !important; */
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
        margin-left: auto;
    }

    .nav-profile.open {
        /* overflow-x: auto; */
        width: 200px !important;
    }

    .nav-profile.open .nav-profile-name {
        opacity: 1;
    }

    .nav-profile.open .nav-profile-logout {
        opacity: 1;
    }

    .projects-panel {
        width: 100%;
        margin: 0;
        padding: 10px;
        padding-top: 80px;
        border-radius: 0 !important;
    }

    .view-toggle {
        display: none !important;
    }

    .projects-grid {
        padding: 10px !important;
    }

    /* =========== Chat =========== */
    .chat-notifications {
        top: 75px !important;
    }

    .chat-card {
        height: calc(100vh - 60px) !important;
        top: 60px !important;
        right: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        /* margin-top: 60px; */
    }

    .chat-users-list,
    .chat-messages-panel {
        padding-bottom: 10vh;
    }

    /* ============ Single Project ============ */

    .card {
        padding: 10px;
    }

    .project-card {
        padding: 10px;
    }

    .projects-panel-mobile {
        overflow-x: hidden;
        padding: 0;
        padding-top: 60px;
        border: none;
        border-radius: 0;
        /* box-sizing: border-box; */
    }

    .project-subnav {
        gap: 0px;
        justify-content: space-between;
    }

    .project-subnav a {
        padding: 2px 3px;
    }

    .project-info {
        flex-direction: column;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 10px;
    }

    .project-title-div {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: start;
        /* justify-content: space-between; */
        width: 100%;
        gap: 5px;
    }

    .meta {
        margin-left: auto;
    }

    .project-title {
        padding: 0;
        font-size: 14px;
        font-weight: bold;
    }

    .dates {
        width: 100%;
    }

    .dates * {
        justify-content: start !important;
    }

    .project-desc {
        display: none;
    }

    .project-desc.mobile {
        display: inherit !important;
        text-align: justify;
    }

    .pause-div {
        flex-direction: column;
        gap: 10px !important;
    }

    /* 
    .project-pause-info .pause-files,  .project-pause-info .pause-badge{
        width: 100%;
    } */

    .project-pause-info {
        width: 100%;
    }

    .project-pause-controls {
        margin-left: 0 !important;
        flex-direction: row !important;
        gap: 10px !important;
    }

    .progress-grid {
        border-radius: 10px;
        border: 1px solid var(--line);
        padding: 10px;
    }

    /* ============= Project Tasks ============== */
    #tasks .card-header {
        flex-direction: column;
        align-items: start;
    }

    #tasks .task-header h3 {
        font-size: 14px;
    }

    .tasks-table {
        display: none;
    }

    .tasks-cards {
        display: grid;
    }

    /* ============= Files Table ============ */
    #files .card-header {
        flex-direction: column;
        align-items: start;
    }

    .files-table-controls {
        /* flex-direction: column; */
        align-items: start !important;
    }

    .files-table-select-controls {
        flex-direction: column;
        align-items: start !important;
    }

    #files .tabs {}

    /* ???????? ???????? Uploaded by ? Date */
    .files-table .thead div:nth-child(4),
    .files-table .thead div:nth-child(5),
    .files-table .tbody .tr>div:nth-child(4),
    .files-table .tbody .tr>div:nth-child(5) {
        display: none !important;
    }

    .files-table[data-panel="finance"] .thead div:nth-child(6),
    .files-table[data-panel="finance"] .tbody .tr>div:nth-child(6) {
        display: none !important;

    }

    /* ?????? ????????? ??-????????? */
    .files-table .thead,
    .files-table .tbody .tr {
        grid-template-columns: 0.1fr 1.5fr 0.7fr 0.3fr !important;
        gap: 6px;
    }


    /* ?????? ????????? ??-????????? */
    .files-table[data-panel="finance"] .thead,
    .files-table[data-panel="finance"] .tbody .tr {
        grid-template-columns: 0.1fr 1fr 0.4fr 0.6fr 0.1fr !important;
        gap: 6px;
    }

    /* ======= Edit Pause Files Table =========== */
    .files-table-pause-edit .thead div:nth-child(6),
    .files-table-pause-edit .thead div:nth-child(5),
    .files-table-pause-edit .tbody .tr>div:nth-child(6),
    .files-table-pause-edit .tbody .tr>div:nth-child(5) {
        display: none !important;
    }

    .files-table-checkboxes.files-table-pause-edit .thead div:nth-child(4),
    .files-table-checkboxes.files-table-pause-edit .tbody .tr>div:nth-child(4) {
        display: flex !important;
    }

    .files-table-pause-edit .thead,
    .files-table-pause-edit .tbody .tr {
        grid-template-columns: 0.4fr 0.3fr 1.5fr 0.5fr !important;
        gap: 6px;
    }

    .files-table-checkboxes.files-table-pause-edit[data-panel="finance"] .thead,
    .files-table-checkboxes.files-table-pause-edit[data-panel="finance"] .tbody .tr {
        grid-template-columns: 0.4fr 0.3fr 1fr 0.6fr 0.7fr !important;
        gap: 6px;
    }


    .files-table-pause-edit[data-panel="finance"] .thead div:nth-child(7),
    /* .files-table-pause-edit[data-panel="finance"] .thead div:nth-child(8), */
    .files-table-pause-edit[data-panel="finance"] .tbody .tr>div:nth-child(7) {
        /* .files-table-pause-edit[data-panel="finance"] .tbody .tr>div:nth-child(8) { */
        display: none !important;
    }

    /* ?????????? ????????? ?? ??????? ? ?????? */
    .files-table .tbody .tr {
        font-size: 13px;
    }

    .invoice-row .files-element-name {
        text-indent: 10px !important;
    }

    .payment-row .files-element-name {
        text-indent: 20px !important;
    }

    .file-row-controls * {
        display: none;
    }

    .file-row-options-icon {
        display: block !important;
    }

    /* ========= Edit Team Modal ========== */
    .selected-file {
        flex-direction: column;
        align-items: start;
        position: relative;
    }

    .remove-file {}

    .file-meta {
        margin: 0 !important;
        width: 100%;
        box-sizing: border-box;
    }

    .file-meta input,
    .file-meta select {
        width: 100% !important;
    }

    /* ========= Edit Team Modal ========== */
    .modal-body.team-grid {
        flex-direction: column !important;
    }

    .graphic-card {
        display: none;
    }

    .gant-chart-card {
        display: none;
    }

    /* ======== Add New Project ========= */
    /* .selected-file{
        flex-direction: column;
    } */

    /* ======== Add New Project ========= */
    #client-team,
    #contractor-team {
        width: 100% !important;
    }

    /* ======== Tasks List ========= */
    #TasksPagePanel {
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    .projects-list {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .project-section .card-header {
        flex-direction: column !important;
        align-items: start;
    }

    #tasksColumn .tools {
        width: 100% !important;
    }

    #tasksColumn .tools * {
        width: 100% !important;
    }

    .show-completed-label {
        display: none !important;
    }

    .show-completed-label.mobile {
        display: flex !important;
        width: 100%;
        box-sizing: border-box;
    }

    .task-return-div.mobile {
        display: flex !important;
    }

    .task-return-div {
        display: none !important;
    }

    .project-section .task-header h3 {
        max-width: 200px !important;
    }

    .task-return-note {
        width: 100%;
    }

    /* ======== Profile Page ========= */
    .last-activity-content {
        flex-direction: column;
    }

    .profile-tool-buttons {
        flex-direction: column;
    }

    .browser-label {
        display: none;
    }

    .browser-column-header {
        width: 30px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .browser-column {
        display: table-cell !important;
        text-align: center;
    }

    /* ======== Company Team Page ========= */
    .team-toolbar {
        flex-direction: column;
        align-items: start !important;
        gap: 10px;
    }

    .label-user-info {
        display: none !important;
    }

    /* ======== Register ========= */
    .register-modal {
        height: 100% !important;
    }

    .register-modal-card {
        margin-top: 120px;

        max-width: 100% !important;
        max-height: 100%;

        width: 100% !important;
        height: 100%;

        box-sizing: border-box;
        border-radius: 0;
    }
}

@media (max-width: 450px) {
    #files .tabs {
        flex-direction: column;
    }
}

@media (min-width: 1025px) {
    .floating-btn {
        display: none !important;
    }
}

.file-row-menu {
    position: absolute;
    background: var(--black);
    border: 1px solid var(--gray);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    display: none;
    flex-direction: column;
    min-width: 130px;
    z-index: 9999;
    overflow: hidden;
}

.file-row-menu button {
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    padding: 8px 12px;
    font-size: 12x;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    border-bottom: 1px solid var(--dark-gray);
}

.file-row-menu button:hover {
    /* background: #f2f2f2; */
    color: var(--light-blue);
}

.file-row-menu button.danger {
    color: var(--red);
}

.file-row-menu.show {
    display: flex;
}