@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* --primarty-color:; */
    --light-color: #f7f8f9;
    --secondary-color: #7987a1;
    --secondary-accent: #838d99;
    --green-color: #27b647;
    --orange-color: #ff7b00;
    --blue-color: #1489ff;
    --dark-color: #0c1b30;
    --red-color: #f36084;
    --grey-color: #e5e7e8;
    --color-white: #fff;
    --color-eee: #eee;
    --color-complete: #f6fff2;
    --dark-text-color: #000;
    --check-hover-color: #333;
    --border-color: #f0f1f1;
    /* DARK MODE COLORS */

    --font-size-title: 30px;
    --font-size-large: 24px;
    --font-size-medium: 20px;
    --font-size-default: 18px;
    --font-size-small: 16px;
    --font-size-xsmall: 14px;
    --font-size-tiny: 12px;

    /* FOR DARK MODE TOGGLE */
    --white: #fdfdfa;
    --black: #4d4d4d;
    --primary: #00b7c6;
    --grey--dark: #aca79a;
}
/* Apply color scheme based on user preference */
/* @media (prefers-color-scheme: dark) {
    :root[data-theme="dark"] {
        --light-color: #031220;
        --color-white: #0b1c2e;
        --color-eee: #031220;
        --color-complete: #0f253c;
        --secondary-color: #7cacf8;
        --check-hover-color: #fff;
        --dark-text-color: #edf4ff;
        --border-color: #3e4c60;

        --white: #4d4d4d;
        --black: #efeeeb;
        --primary: #ff851b;
    }
}
:root[data-theme="dark"] {
    --light-color: #031220;
    --color-white: #0b1c2e;
    --color-eee: #031220;
    --color-complete: #0f253c;
    --secondary-color: #7cacf8;
    --check-hover-color: #fff;
    --dark-text-color: #edf4ff;
    --border-color: #3e4c60;

    --white: #4d4d4d;
    --black: #efeeeb;
    --primary: #ff851b;
}
/* Dark mode */
/* :root[data-theme="dark"]
    :is(.name, .task-text, .timer span, .product-card .product) {
    color: var(--dark-text-color);
}
:root[data-theme="dark"] .row-completed {
    background-color: var(--color-complete);
}
:root[data-theme="dark"] .add-task-row input[type="text"] {
    color: var(--dark-text-color);
    background-color: var(--color-white);
}  */

* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

body,
html {
    margin: 0px;
    background-color: var(--light-color);
    font-size: var(--font-size-default);
    letter-spacing: 0.5px;
    line-height: 1.5;
    padding-bottom: 150px;
}

body{
    font-family: 'Roboto', sans-serif !important;
}

/* .off-screen-content {
    content-visibility: auto;
} */

html:has(.login-container),
body:has(.login-container) {
    padding-bottom: 0px;
}

.flex-container {
    display: flex;
    flex-direction: column;
}

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

.header {
    font-size: var(--font-size-tiny);
    color: var(--secondary-color);
    font-weight: normal;
    gap: 1rem;
}
.task-added-row {
    margin-top: 1rem;
    padding-left: 1rem;
}
.screenshots {
    width: 300px;
}
.hide {
    display: none;
}
.all-tasks {
    text-decoration: none;
    font-size: var(--font-size-xsmall);
    color: #aaa;
    display: block;
    text-align: center;
    /* text-shadow: 0px 2px 4px #e9d9d9; */
    margin-top: 0.5rem;
}
.navigation-link {
    background-color: var(--secondary-color);
    /* color: var(--dark-text-color); */
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
}
/* SHOW DESCRIPTION */

.tooltip {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.task-text {
    display: inline;
}
.task-detail {
    cursor: pointer;
}
.task-detail-icon {
    cursor: pointer;
    width: 10px;
}
.task-detail:hover > .description {
    opacity: 1;
    filter: alpha(opacity=100);
    z-index: 99;
    -webkit-transition: all 0.1s ease;
    -moz-transition: all 0.1s ease;
    -o-transition: all 0.1s ease;
    transition: all 0.1s ease;
}

.tooltip .description {
    background: #f1f1f1;
    color: black;
    min-width: 400px;
    min-height: 200px;
    width: 100%;
    margin-left: 0;
    opacity: 0;
    filter: alpha(opacity = 0);
    position: absolute;
    text-transform: none;
    word-break: break-all;
    overflow: auto;
    z-index: -9999;
    padding: 10px 25px;
}

/* SHOW DESCRIPTION END */

/* LOGIN PAGE */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 18px;
    background: var(--color-complete);
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    color: var(--dark-text-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.login-form input,
.login-form button {
    padding: 12px 16px;
    border-radius: 4px;
    border: none;
    outline: none;
    min-width: 260px;
}

.login-form input {
    color: var(--dark-text-color);
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
}

.login-form button {
    cursor: pointer;
    background: var(--secondary-color);
    color: #fff;
}

.text-error {
    color: var(--red-color);
    font-size: 12px;
    text-transform: capitalize;
}
/* LOGIN PAGE END */

/* HEADER */
header {
    width: 100%;
    position: fixed;
    top: 0;
    background-color: var(--color-complete);
    z-index: 10;
    padding: 12px 0;
}

.ccsticky-nav ul {
    display: flex;
    align-items: center;
    padding: 4px;
    margin: 0 auto;
    list-style: none;
    text-align: center;
    gap: 4px;
}

.ccsticky-nav ul li {
    display: inline-block;
}

.ccsticky-nav ul li a {
    padding: 4px 10px;
    color: var(--secondary-accent);
    font-size: var(--font-size-xsmall);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    border-radius: 8px;
    gap: 8px;
    align-items: center;
    border: 1px solid transparent;
}

.ccsticky-nav ul li a img {
    width: 18px;
    height: 18px;
}

/* :root[data-theme="dark"] .ccsticky-nav ul li a.active img,
:root[data-theme="dark"] .ccsticky-nav ul li a:hover img {
    filter: brightness(2);
} */

.ccsticky-nav ul li a.active img,
.ccsticky-nav ul li a:hover img {
    filter: brightness(0);
}

.ccsticky-nav ul li a.active,
.ccsticky-nav ul li a:hover {
    border-color: var(--dark-text-color);
    color: var(--dark-text-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .js-search-product {
    margin-bottom: 0;
    border: 1px solid var(--secondary-accent);
    border-radius: 8px;
    font-size: var(--font-size-xsmall);
    width: 256px;
    background-size: 14px 14px;
}

header + div {
    margin-top: 64px !important;
}

header .nav-right {
    display: flex;
    gap: 32px;
    align-items: center;
}

header .nav-avatar {
    width: 42px;
    height: 42px;
}

header .logged-user {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
}

header .logged-user .user-name {
    color: var(--dark-text-color);
    font-size: var(--font-size-small);
}

header .logged-user:hover .user-dropdown {
    display: block;
    cursor: pointer;
}

header .logged-user .user-dropdown {
    position: absolute;
    min-width: 142px;
    top: 100%;
    background-color: var(--color-complete);
    font-size: var(--font-size-xsmall);
    border-radius: 8px;
    padding: 8px;
    list-style: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    display: none;
}

header .logged-user .user-dropdown li {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: var(--font-size-xsmall);
}

header .logged-user .user-dropdown li:hover {
    background-color: var(--color-white);
}

header .logged-user .user-dropdown a {
    color: var(--dark-text-color);
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

header .logged-user .user-dropdown a:hover {
    color: var(--dark-text-color);
}

header .logged-user .user-dropdown .switch-theme {
    display: flex;
    color: var(--dark-text-color);
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-xsmall);
}

/* HEADER END */
div.explode,
.subtask {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
    border-top: 1px solid var(--color-eee);
    position: relative;
    gap: 5px;
    /* padding: 5px 0; */
}
.dialog-subtask {
    border: 1px solid #ddd;
    padding: 5px 10px;
    text-align: center;
    font-size: small;
    min-width: fit-content;
    border-radius: 10px;
    color: var(--dark-text-color);
}
div.explode:last-child,
.subtask:last-child {
    border-bottom: unset;
}
.subtask {
    /* padding-left: 3rem; */
    /* margin-left: 3rem;
    width: calc(100% - 3rem); */
}
.indicator {
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
}
.indicator.live {
    background-color: forestgreen;
}
.indicator.staging {
    background-color: gold;
}
.indicator.local {
    background-color: slategray;
}
.flex-item {
    font-size: var(--font-size-xsmall);
    color: var(--secondary-color);
}
.flex-item:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-basis: 0%;
}
.flex-item:nth-child(2) {
    flex-basis: 50%;
}
.flex-item:nth-child(3) {
    flex-basis: 3%;
}
.flex-item:nth-child(4) {
    flex-basis: 5%;
}
.flex-item:nth-child(5) {
    flex-basis: 3%;
}
.flex-item:nth-child(6) {
    flex-basis: 5%;
}
.flex-item:nth-child(7) {
    flex-basis: 20%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 5px;
}
.single-img {
    position: relative;
}
.user-profile {
    display: flex;
    gap: 10px;
    align-items: center;
    /* flex-wrap: wrap; */
    overflow-x: auto;
}
.profile-item {
    display: flex;
    min-width: fit-content;
    gap: 0.5rem;
    align-items: center;
}
.del-img {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--red-color);
    height: 15px;
    width: 15px;
    padding: 5px;
    border-radius: 50%;
    border-color: unset;
}
.del-img::before {
    content: "x";
    color: white;
    font-size: 15px;
    position: absolute;
    line-height: 0.3;
}
.task-title-cell {
    width: 100%;
    justify-content: space-between;
    padding: 5px 0;
}
.label-icon {
    border: 1px solid #ccc;
    border-radius: 5px;
    display: flex;
    position: relative;
    height: 25px;
    width: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.label-form {
    position: absolute;
    top: -30px;
    left: -15px;
    width: 50px;
    background-color: var(--color-white);
    padding: 2px;
    display: none;
}
.complete-by-user {
    color: #ccc;
    font-size: 12px;
}
.label-icon img,
.subtask-icon img,
.js-edit-task img {
    width: 12px;
}
.show-on-hover {
    visibility: hidden;
    cursor: pointer;
}
.js-task:hover .show-on-hover {
    visibility: visible;
    display: flex;
    border-color: var(--secondary-color);
}
.js-edit-task {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
}
.label-tag {
    border: 1px solid #ddd;
    width: 100%;
    outline: unset;
    padding: 2px 5px;
    font-size: 12px;
    border-radius: 5px;
}
.subtask-icon {
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1.2rem;
    color: #ccc;
    text-align: center;
    height: 25px;
    width: 25px;
    justify-content: center;
    align-items: center;
}
.task-added-row.subtask {
    width: calc(100% - 4rem);
}
.rotate90 {
    rotate: 90deg;
    margin-top: 0.5rem;
}
.container {
    width: 1200px;
    margin: 0px auto;
}

.product-card {
    background: 100%;
    background: var(--color-white);
    column-gap: 20px;
    transition: ease-in-out 0.1s;
}

.product-card .tile {
    box-shadow: 0px 5px 5px -2px rgba(0, 0, 39, 0.05);
    background: var(--color-white);
    cursor: pointer;
}
.product-card .tile > div {
    padding: 10px 20px;
}

.product-card .product {
    border-right: 2px solid var(--light-color);
    flex: 1;
}
.product-card .users {
    flex: 4;
}
.name {
    font-size: 14px;
    flex-direction: column;
}
.name .active {
    color: #27b647;
    font-weight: bold;
}
.u-name {
    color: var(--secondary-color);
}
.product-card .user-card .jd {
    font-size: 12px;
    /* color: var(--secondary-color); */
}
.product-card .timer label {
    font-size: var(--font-size-xsmall);
    color: var(--secondary-color);
}
.product-card .timer span {
    font-size: 36px;
    font-weight: bold;
}
.product-card .actions {
    column-gap: 20px;
    flex: 2;
    display: flex;
    justify-content: right;
    border-left: 2px solid var(--light-color);
}
.product-card .actions .button-group .manual {
    font-size: var(--font-size-xsmall);
    cursor: pointer;
}
.todos-wrapper {
    padding: unset;
}

.todos-wrapper > .flex-row {
    position: relative;
}

.task-action-btns {
    display: flex !important;
    gap: 5px;
    align-items: center;
    height: 30px;
    min-width: fit-content;
}
.row-completed {
    background-color: var(--color-complete);
}
.row-rejected {
    background-color: rgba(201, 63, 63, 0.61);
}
.row-completed .checkbox-wrapper-2 {
    visibility: visible;
    display: inline;
}
.caret {
    font-size: 2rem;
    cursor: pointer;
    height: 0;
    border: 6px solid transparent;
    border-left-color: #8d8d8d9c;
    margin-left: 5px;
    transition: all ease-in 0.1s;
    transform-origin: center;
}
.caret.transparent {
    border-left-color: transparent;
}
.todos-wrapper span.ss {
    border-radius: 5px;
    display: inline-block;
    overflow: hidden;
    width: 60px;
    height: 40px;
    border: 1px solid var(--light-color);
}
.todos-wrapper .ss:hover {
    transform: scale(1.05);
}

.todos-wrapper img.ss {
    object-fit: cover;
    padding: 1px;
    width: 100%;
    height: 100%;
}
.wrapper-parent {
    width: 100%;
}
.add-task-row button:not(.submit-btn) {
    background: none;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 12px;
    margin: 5px 0px;
    border-color: #ddd;
}
dialog {
    border: none !important;
    border-radius: 10px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.6rem;
    max-width: 800px;
    width: 100%;
    margin: auto;
    /* z-index: 9999; */
    background-color: var(--color-white);
    color: var(--dark-text-color);
}
.add-task-row input[type="text"],
dialog input[type="text"] {
    height: 40px;
    border: none;
    font-size: var(--font-size-xsmall);
    color: var(--secondary-color);
}
.dialog-form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
dialog textarea {
    width: 100%;
    resize: vertical;
    min-height: 100px;
    border: 1px solid #ddd;
    padding: 1rem;
}
.add-task-row input[type="text"]:focus,
dialog input[type="text"]:focus {
    outline: none;
}
dialog :is(input[type="text"], textarea, select) {
    display: block;
    border-bottom: 1px solid #ddd;
    background-color: var(--color-white);
    color: var(--dark-text-color);
}
dialog select {
    padding: 10px;
}

.multi-select-wrapper {
    position: absolute;
    top: calc(50% - 10px);
    left: -46px;
}
.subtask .multi-select-wrapper {
    left: -100px;
}
.sticky-top {
    width: 100%;
    display: flex;
    height: 68px;
    background-color: var(--dark-color);
    position: fixed;
    top: 0;
    color: var(--color-white);
    align-items: center;
    padding: 0px 50px;
    justify-content: space-between;
    z-index: 999999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.img-preview {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.img-preview > .img-box {
    width: 100px;
    height: 100px;
    position: relative;
}

.img-preview img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    width: 100px;
}

.cross {
    position: absolute;
    color: white;
    background-color: red;
    border: 1px solid black;
    padding: 0px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    right: -10px;
    border-radius: 50%;
    top: -10px;
}
.main-screen {
    display: none;
}
/* LIGHTBOX */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Ensure lightbox is above other content */
}
.visibility-hidden {
    visibility: hidden;
}
.tile:hover .visibility-hidden {
    visibility: visible;
}
#lightbox img {
    max-width: 80%; /* Adjust as needed */
    max-height: 80%; /* Adjust as needed */
}
.task-form {
    display: flex;
}
.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.submit-btn {
    padding: 5px 1rem;
    background-color: var(--green-color);
    color: white;
    border: unset;
    border-radius: 5px;
}

.edit-form {
    display: flex;
    gap: 1rem;
    width: 100%;
}
.edit-form .form-input {
    outline: unset;
    padding: 10px 0px;
    border-radius: unset;
    border: unset;
    width: 100%;
    color: #60a346;
    background-color: var(--light-color);
}
.edit-form form {
    width: 100%;
}
.edit-form .form-btn {
    background-color: var(--green-color);
    color: white;
    padding: 5px 10px;
    outline: unset;
    border: unset;
    border-radius: 5px;
}

.toggle-edit {
    color: black;
}

.circle {
    display: inline-block;
    background-color: #00d53b;
    margin: 10px;
    border-radius: 50%;
}

.circle-inner {
    color: white;
    text-decoration: none;
    padding: 0px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    font-size: 12px;
    font-weight: bold;
}

.loading {
    position: absolute;
    height: 0;
    width: 0;
    padding: 10px;
    border: 6px solid #ccc;
    border-right-color: #888;
    border-radius: 20px;
    -webkit-animation: rotate 1s infinite linear;
    margin-inline: auto;
    z-index: 9999;
}

.progress {
    width: 100%;
    background-color: var(--light-color);
    height: 5px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}
.complete {
    position: absolute;
    background-color: #ffc531;
    height: 100%;
    left: 0;
    z-index: 1;
}
.approved {
    position: absolute;
    background-color: #60bf89;
    height: 100%;
    left: 0;
    z-index: 2;
}
.task-counts {
    text-align: end;
    margin-top: 0.375rem;
    font-size: 12px;
}
.user-card {
    width: 600px;
    overflow: auto;
}
.tile > .product {
    width: min(200px, 230px);
    word-break: break-all;
}
.tile > .product > a {
    color: var(--dark-text-color);
}
@-webkit-keyframes rotate {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

/* .comment-action.border-gray {
    border: 1px solid var(--secondary-color) !important;
}
.comment-action {
    display: flex;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    min-width: fit-content;
}

.comment-count {
    color: var(--black);
    margin-left: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
}

.comment-box {
    position: absolute;
    right: 0;
    top: 70px;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    padding: 16px 0px 16px 16px;
    border-radius: 8px;
    display: none;
    background-color: var(--color-white);
    box-shadow: 2px 6px 32px 5px #0000001a;
    flex-direction: column;
    gap: 1rem;
}
.comments-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.activeModal {
    display: flex;
}
.activeModal .heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text-color);
    display: block;
}
.activeModal .comment-task-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-text-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    padding-right: 16px;
    border-bottom: 1px solid var(--border-color);
}
.comment-header .comment_heading h3 {
    color: var(--dark-text-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.comment-box .close_modal {
    cursor: pointer !important;
    width: 20px !important;
    height: 20px !important;
    color: var(--red-color);
}
.comment-box .comment-body {
    min-height: 80px;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}
.comment-profile {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.comment-profile .profile-img img,
.comment-profile .profile-img {
    width: 24px;
    height: 24px;
}
#comment {
    width: 236px;
    height: 40px;
    padding: 8px;
    border-radius: 4px;
    resize: none;
    background-color: #f6f8fc;
    border: none;
}
.comment-profile {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.comment-content {
    width: 100%;
}
.comment-content .profile-info div {
    display: flex;
    gap: 5px;
    align-items: center;
}
.comment-content span {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #9397ad;
}
.comment-content h3 {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    color: var(--dark-text-color);
}
.comment-content .profile-info {
    display: flex;
    justify-content: space-between;
    padding-right: 20px;
    align-items: center;
}
.comment-content p {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: var(--dark-text-color);
    margin-top: 5px;
} */

.multi-select {
    cursor: pointer;
}
