@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overscroll-behavior: none;
}
body {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    line-height: 24px;
    background-color: #0C0C0C !important; /* Black for modern depth */
    color: #E5E5E5; /* Light gray for readability */
}
.compass-bar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background-color: rgba(0,0,0,0.5); /* Dark gray for subtle contrast */
    cursor: pointer;
    transition: width 0.3s ease;
    overflow-y: scroll;
    z-index: 1000;
    -moz-transition: .4s;
    -webkit-transition: .4s;
    transition: .4s;
    z-index: 99999999;
padding-bottom: 90px;
    border-right: solid 1px rgba(75, 85, 99, 0.3); /* Subtle gray border */
}
.compass-bar:hover {
    background-color: rgba(0,0,0,0.75); /* Lighter gray on hover for gentle interaction */
}
.compass-bar.open {
    width: 300px;
    background-color: rgba(0,0,0,1.0) !important;
    -moz-transition: .4s;
    -webkit-transition: .4s;
    transition: .4s;
}
.compass-bar-icon {
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-align: center;
    color: #E5E5E5;
    font-size: 32px;
    opacity: 0.6;
    -moz-transition: .4s;
    -webkit-transition: .4s;
    transition: .4s;
}
.compass-bar.open .compass-bar-icon {
    opacity: 1;
    -moz-transition: .4s;
    -webkit-transition: .4s;
    transition: .4s;
}
.compass-bar-nav {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}
.compass-bar.open .compass-bar-nav {
    max-height: 680px;
    opacity: 1;
}
.compass-bar-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 16px;
}
.compass-bar-nav ul li {
    font-size: 20px;
    font-weight: 600;
    display: block;
    color: #E5E5E5;
    height: auto;
    border-radius: 4px;
    box-sizing: border-box;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 0px !important;
    -moz-transition: .4s;
    -webkit-transition: .4s;
    transition: .4s;
    margin-bottom: 16px;

}
.compass-bar-nav ul li:hover { 
    color: #6B7280; /* Gray accent for hover */
    background-color: rgba(75, 85, 99, 0.1); /* Soft gray overlay */
    -moz-transition: .4s;
    -webkit-transition: .4s;
    transition: .4s;
    text-shadow: none; /* Removed harsh shadow for softness */
}
.compass-bar-nav ul li i {
    margin-right: 16px;
}
.main-content {
    position: fixed;
    left: 50px;
    top: 0;
    height: 100%;
    width: calc(100% - 50px);
    padding: 0px;
    background: linear-gradient(135deg, #0C0C0C 0%, #1A1A1A 100% ,0) !important; /* Subtle black-gray gradient for depth */
    overflow-y: scroll;
    transition: opacity 0.3s ease;
    padding: 16px;
    padding-bottom: 180px;
}
.mcp {
    padding: 16px !important;
}
.main-content .container {
    transition: opacity 0.3s ease;
}
/* Loading Spinner */
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 128px;
    background: url('spinner.svg') no-repeat center center;
    background-size: contain;
    display: none;
    z-index: 1001;
}
.progress-hud {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 999999;
    width: calc(100% - 82px);
    color: #E5E5E5;
    height: auto;
    padding: 12px;
    border-left: solid 4px #6B7280; /* Gray accent */
    border-radius: 8px;
    transform: translateY(0);
    transition: transform 0.5s ease;
    font-size: 14px;
}
.progress-hud {
    transition: transform 0.5s ease;
    transform: translateY(0);
}
.progress-hud.hidden {
    transform: translateY(100%);
}
.progress-hud #hud-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.progress-hud .contact-count {
    font-weight: 500;
    color: #E5E5E5;
}
.progress-hud #liveTime,
.progress-hud #weather {
    color: #9CA3AF;
    font-size: 12px;
}
.mainBanner {
    text-align: center;
    padding-top: 180px;
    font-size: 64px;
    color: #E5E5E5;
}
.mainBanner h2 {
    font-size: 24px;
    line-height: 32px;
    padding: 0px 32px;
    margin-top: 24px;
    color: #9CA3AF; /* Softer secondary text */
}
.startMission {
    margin: 0 auto;
    padding: 0;
    text-align: center;
    width: 600px;
    margin-top: 80px;
}
#urgencyWrapper {
    margin-top: 16px;
}
.startMission input, select {
    border: none;
    outline: none;
    padding: 16px;
    font-family: inherit;
    font-size: 1em;
    background-color: rgba(26, 26, 26, 0.8); /* Semi-transparent black */
    color: #E5E5E5;
    border-radius: 32px;
    border: 1px solid rgba(75, 85, 99, 0.3);
}
#brain {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 64px;
    height: 64px;
    font-size: 32px;
    border-radius: 8px;
    border: solid 1px #6B7280;
    background: rgba(75, 85, 99, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12.7px);
    -webkit-backdrop-filter: blur(12.7px);
    color: #6B7280;
    z-index: 99999999;
    text-align: center;
    line-height: 64px;
    cursor: pointer;
    -webkit-transition: .4s;
    -moz-transition: .4s;
    transition: .4s;
}
#brain:hover {
    opacity: 0.8;
    background: rgba(75, 85, 99, 0.2);
    -webkit-transition: .4s;
    -moz-transition: .4s;
    transition: .4s;
}
#brain:active {
    opacity: 0.5;
    -webkit-transition: .4s;
    -moz-transition: .4s;
    transition: .4s;
}
#taskBoard {
    padding: 0px;
    user-select: none;
}
#items {
    padding: 0px;
    margin-top: 64px;
    user-select: none;
    margin-bottom: 100px;
}
#taskBoard .item {
    background-color: #1A1A1A;
    color: #E5E5E5;
    border: solid 1px rgba(75, 85, 99, 0.2);
    padding: 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    user-select: none;
}
#taskBoard .item.amber {
    border: solid 1px #9CA3AF;
    animation: amberGlow 2s ease-in-out infinite;
}
#taskBoard .item.red {
    border: solid 1px #9CA3AF;
    animation: redGlow 1.5s ease-in-out infinite;
}
@keyframes amberGlow {
    0% { box-shadow: 0 0 5px rgba(156, 163, 175, 0.3); }
    50% { box-shadow: 0 0 15px rgba(156, 163, 175, 0.5); }
    100% { box-shadow: 0 0 5px rgba(156, 163, 175, 0.3); }
}
@keyframes redGlow {
    0% { box-shadow: 0 0 5px rgba(156, 163, 175, 0.5); }
    50% { box-shadow: 0 0 15px rgba(156, 163, 175, 0.8); }
    100% { box-shadow: 0 0 5px rgba(156, 163, 175, 0.5); }
}
#taskBoard h1 {
    margin: 0;
    padding: 0;
    color: #E5E5E5;
}
#taskBoard h2 {
    margin: 0;
    padding: 0;
    font-size: 16px;
    margin-top: 8px;
    font-weight: 400;
    color: #9CA3AF; /* Soft gray for highlights */
}
.item-label {
    font-size: 16px;
    line-height: 24px;
    font-family: 'Outfit', sans-serif;
    color: #E5E5E5;
}
.item-label i {
    margin-right: 4px;
}
.raceSpinner {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
}
.raceSpinner svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.raceSpinner circle {
    fill: none;
    stroke: #9CA3AF;
    stroke-width: 4px;
    stroke-linecap: round;
    cx: 12px;
    cy: 12px;
    r: 10px;
    stroke-dasharray: 62.8;
    stroke-dashoffset: 0;
    animation: spinDown 10s linear forwards;
}
.time-added {
    font-size: 12px;
    line-height: 12px;
    margin-top: 8px;
    opacity: 0.7;
    color: #9CA3AF;
}
.bodyFrame {
    padding: 16px;
}
@keyframes spinDown {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 62.8;
    }
}
#overlay {
    background: rgba(12, 12, 12, 0.9); /* Semi-transparent black */
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999999999999999;
    top: 0;
    left: 0;
    right: 0;
    padding: 0px 128px;
    overflow-y: scroll;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
}
#overlay.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0s;
}
#overlay.open #brand,
#overlay.open #onboard {
    animation: scaleIn 0.3s ease-out;
}
@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
#overlay #brand {
    width: 50%;
    height: 100%;
    float: left;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 256px;
    transition: .4s;
    color: #6B7280; /* Gray for brand */
}
#overlay #onboard {
    width: 50%;
    height: 100%;
    float: right;
    padding-top: 180px;
    justify-content: center;
    align-items: center;
    transition: .4s;
}
#overlay #onboard h1 {
    margin: 0;
    padding: 0;
    font-size: 48px;
    line-height: 56px;
    width: 100%;
    display: block;
    color: #E5E5E5;
}
#overlay #onboard h2 {
    display: block;
    width: 100%;
    font-weight: 300;
    margin-top: 20px;
    font-size: 20px;
    line-height: 32px;
    color: #9CA3AF;
}
#overlay #onboard h3 {
    display: block;
    width: 100%;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 16px;
    margin-top: 40px;
    color: #E5E5E5;
}
#overlay #onboard h4 {
    display: block;
    width: 100%;
    font-weight: 500;
    margin-top: 24px;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 16px;
    color: #9CA3AF;
}
#onboard-buttons {
    margin-top: 64px;
}
#onboard-buttons button {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    border-radius: 24px;
    font-family: inherit;
    border: none;
    width: auto;
}
.startMissionCta button {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    border-radius: 24px;
    font-family: inherit;
    border: none;
    width: 100%;
}
#LoginSection {
    margin-top: 16px;
}
.primary {
    background-color: #6B7280; /* Gray primary */
    color: #111827; /* Dark for contrast */
    border: solid 1px rgba(75, 85, 99, 0.2);
}
.secondary {
    background-color: transparent !important;
    color: #6B7280 !important;
    border: solid 1px #6B7280 !important;
    animation: amberGlow 2s ease-in-out infinite; /* Reuse for subtle pulse */
}
.dots::after {
    content: '';
    display: inline-block;
    width: 0.5em;
}
.dots.dot1::after { content: '.'; color: #9CA3AF; }
.dots.dot2::after { content: '..'; color: #9CA3AF; }
.dots.dot3::after { content: '...'; color: #9CA3AF; }
#close-overlay {
    width: 32px;
    height: 32px;
    font-size: 32px;
    top: 32px;
    right: 32px;
    cursor: pointer;
    line-height: 32px;
    opacity: 0.6;
    z-index: 9999999999999999999;
    position: fixed;
    color: #E5E5E5;
}
#close-overlay:hover {
    opacity: 0.9;
}
.startMissionCta {
    margin-top: 24px;
}
.startMission input {
    text-align: center;
}
button:disabled {
    opacity: 0.5;
    color: rgba(160, 160, 160, 0.7);
    cursor: not-allowed;
}
.fade-container {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}
.form-section {
    display: none;
    opacity: 0;
    padding-top: 40px !important;
    transition: opacity 0.3s ease-in-out;
}
.fade-container.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}
.form-section.active {
    display: block;
    opacity: 1;
}
.onboardTitle.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}
.onboardTitle.active {
    display: block;
    opacity: 1;
}
.form-section h3 {
    display: block;
    width: 100%;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 16px;
    color: #E5E5E5;
}
.form-section input {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border: none;
    background-color: transparent;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(75, 85, 99, 0.3);
    color: #E5E5E5;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    font-size: 1em;
    font-weight: 600;
}
.form-section button {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    border-radius: 24px;
    font-family: inherit;
    border: none;
    outline: none;
    width: 100%;
    margin-top: 24px;
    background-color: #6B7280;
    color: #111827;
}
.form-section .input-wrapper {
    position: relative;
}
.form-section .input-wrapper i {
    position: absolute;
    right: 16px;
    top: 27px;
    transform: translateY(-50%);
    font-size: 20px;
}
.fa-check {
    color: #6B7280; /* Gray for success */
}
.fa-times {
    color: #9CA3AF; /* Soft gray for error */
}
#welcomeSection {
    display: none;
    padding-top: 40px;
}
#welcomeSection.active {
    display: block;
}
@media screen and (max-width: 650px) {
    .startMission {
        width: 100%;
    }
    .mainBanner {
        text-align: center;
        padding-top: 80px;
        font-size: 64px;
    }
    #overlay #brand {
        width: 100%;
        height: auto;
        margin-top: 64px;
        text-align: left;
        justify-content: left;
        align-items: left;
        font-size: 128px;
        transition: .4s;
        padding: 0px 32px;
    }
    #overlay #onboard {
        width: 100%;
        height: auto;
        margin-top: 32px;
        text-align: left;
        justify-content: left;
        align-items: left;
        transition: .4s;
        padding: 0px 32px;
    }
    #overlay {
        padding: 0px 0px;
        padding-bottom: 64px;
    }
    #onboard-buttons {
        width: 100%;
    }
}
.progress-hud.dipped {
    transform: translateY(calc(100% - 40px));
}
.progress-hud.hidden {
    transform: translateY(100%);
}
.custom-select {
    position: relative;
    width: 100%;
    margin-top: 16px;
}
.custom-select .selected {
    width: 100%;
    padding: 16px;
    background-color: rgba(26, 26, 26, 0.8);
    color: #E5E5E5;
    border-radius: 32px;
    cursor: pointer;
    font-size: 1em;
    text-align: left;
    transition: border-radius 0.3s ease;
    border: 1px solid rgba(75, 85, 99, 0.3);
}
.custom-select.open .selected {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.custom-select .options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(18.9px);
    -webkit-backdrop-filter: blur(18.9px);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 1000;
}
.raceMode {
    width: auto !important;
    text-align: left !important;
    max-width: 200px !important;
}
.custom-select.open .options {
    max-height: 200px;
    overflow-y: auto;
}
.custom-select .option {
    padding: 12px 16px;
    color: #E5E5E5;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}
.custom-select .option:hover {
    background-color: rgba(75, 85, 99, 0.2); /* Gray hover */
}
.custom-select .option:last-child {
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}
/* Race Minutes Input */
.race-checkbox {
    width: 100px;
    margin-bottom: 16px;
    margin-top: 16px;
    color: #E5E5E5;
}
.race-checkbox input {
    margin-right: 0px;
}
.race-minutes {
    display: none;
    margin-bottom: 16px;
}
.race-minutes.active {
    display: block;
}
.race-minutes input {
    width: 100%;
    padding: 16px;
    background-color: rgba(26, 26, 26, 0.8);
    color: #E5E5E5;
    border-radius: 32px;
    border: none;
    outline: none;
    font-size: 1em;
    text-align: center;
    border: 1px solid rgba(75, 85, 99, 0.3);
}
#smTitle {
    margin: 0;
    padding: 16px;
    color: #E5E5E5;
}
/* Tile Styles */
.tile {
    background-color: #1A1A1A;
    border: 1px solid rgba(75, 85, 99, 0.3);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: #E5E5E5;
}
.tile h3 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #6B7280;
}
.tile p {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
    color: #E5E5E5;
}
.full-width-tile {
    width: 100%;
    margin-bottom: 16px;
}
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
/* Chart Styles */
#taskChart {
    width: 100%;
    background-color: #1A1A1A;
    max-height: 400px;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(75, 85, 99, 0.2);
}
.task-card {
    background: #242424;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(75, 85, 99, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    color: #E5E5E5;
    font-family: 'Outfit', sans-serif; /* Consistent font */
    z-index: 99999999;
    position: relative;
    border: 1px solid rgba(75, 85, 99, 0.2);
}
.task-card.green { border-left: 4px solid #6B7280; }
.task-card.amber { border-left: 4px solid #9CA3AF; }
.task-card.red { border-left: 4px solid #9CA3AF; }
.task-card.completed { opacity: 0.7; background: #0C0C0C; }
.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.task-title {
    font-size: 18px;
    font-weight: 600;
    color: #6B7280;
}
.collab-accepted {
    font-size: 12px;
    color: #6B7280;
    background: rgba(107, 114, 128, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}
.deadline {
    color: #9CA3AF;
}
.collab-info {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
    color: #9CA3AF;
}
.collab-info span {
    margin-right: 10px;
}
.progress-circle {
    width: 30px;
    height: 30px;
}
.circle-bg {
    fill: none;
    stroke: #2A2A2A;
    stroke-width: 2;
}
.circle {
    fill: none;
    stroke: #6B7280;
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s;
}
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #242424;
    color: #6B7280;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(75, 85, 99, 0.2);
}
.collab-count {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    background-color: #6B7280;
    color: #111827;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    margin-left: 5px;
    vertical-align: middle;
}
.delete-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #1A1A1A;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    padding: 20px;
    border: 1px solid rgba(75, 85, 99, 0.2);
    color: #E5E5E5;
}
.popup-content {
    text-align: center;
}
.popup-content p {
    margin: 0 0 15px;
    font-size: 16px;
    color: #E5E5E5;
}
.popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.popup-content button {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
    font-family: 'Outfit', sans-serif;
}
.yes-btn {
    background-color: #9CA3AF;
    color: #111827;
}
.yes-btn:hover {
    background-color: #6B7280;
}
.cancel-btn {
    background-color: #374151;
    color: #E5E5E5;
}
.cancel-btn:hover {
    background-color: #4B5563;
}
.task-card.completed .task-title {
    text-decoration: line-through;
    color: #9CA3AF;
}
.task-card.completed {
    opacity: 0.7;
}
/* Ensure child elements also prevent selection */
.task-header,
.task-title,
.task-meta,
.deadline,
.collab-info,
.collab-accepted,
.collab-count,
.progress-circle {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}
.user-info {
    display: inline-block;
    vertical-align: middle;
}
.status-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}
.username, .rank-name {
    display: block;
}
/* Ensure main-content and container are visible */
.main-content, .container {
    opacity: 1 !important;
    display: block !important;
}
.task-screen {
    padding: 20px;
    color: #E5E5E5;
    background: linear-gradient(135deg, #1A1A1A 0%, #0C0C0C 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 9999999999999999999;
    border: 1px solid rgba(75, 85, 99, 0.2);
}
.task-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.t-header {
    margin-top: 80px;
}
.task-header h2 {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
    color: #6B7280;
}
.back-btn {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 32px;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    top: 10px;
    left: 16px;
}
.back-btn:hover {
    color: #4B5563; /* Darker gray on hover */
}
.task-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    position: absolute;
    left: 64px;
    top: 40px;
    background: rgba(75, 85, 99, 0.2);
    border: 1px solid #6B7280;
    color: #6B7280;
}
.task-status.completed {
    background: #6B7280;
    color: #111827;
    border-color: #6B7280;
}
.task-content {
    display: flex;
    gap: 20px;
}
.task-details {
    flex: 2;
}
.task-meta {
    flex: 1;
    background: #242424;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(75, 85, 99, 0.2);
}
.task-card .task-meta {
    flex: 1;
    background: none !important;
    padding: 0px;
}
/* Media query for mobile devices */
@media (max-width: 768px) {
    .task-content {
        flex-direction: column;
        gap: 15px;
    }
    .task-details, .task-meta {
        flex: none;
        width: 100%;
    }
    .task-meta {
        padding: 10px;
    }
}
.task-details h3, .task-meta h3 {
    margin: 0 0 10px;
    color: #6B7280;
    font-size: 18px;
}
.task-details p, .task-meta p {
    margin: 8px 0;
    font-size: 14px;
    color: #9CA3AF;
}
.urgency, .priority {
    text-transform: capitalize;
    padding: 2px 8px;
    border-radius: 4px;
}
.urgency.green, .priority.green { background: rgba(107, 114, 128, 0.2); color: #6B7280; }
.urgency.red, .priority.red { background: rgba(156, 163, 175, 0.2); color: #9CA3AF; }
.urgency.amber, .priority.amber { background: rgba(156, 163, 175, 0.2); color: #9CA3AF; }
.task-comments, .task-attachments {
    margin-top: 32px;
    margin-bottom: 32px;
}
.comments-list, .attachments-list {
    overflow-y: auto;
    margin-bottom: 10px;
}
.comment, .attachment {
    background: #242424;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 14px;
    color: #E5E5E5;
    border: 1px solid rgba(75, 85, 99, 0.1);
}
.collaborators-list {
    margin-bottom: 10px;
}
.collaborator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}
.collaborator-initial {
    width: 24px;
    height: 24px;
    background: #6B7280;
    color: #111827;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
.comment-input, .collaborator-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background: #1A1A1A;
    border: solid 1px rgba(75, 85, 99, 0.3);
    color: #E5E5E5;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    resize: none;
    font-family: inherit;
}
.attachment-input {
    margin: 10px 0;
}
.add-comment, .add-attachment, .add-collaborator, .complete-task {
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    background: #6B7280;
    color: #111827;
    border: none;
    font-family: 'Outfit', sans-serif;
}
.complete-task:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Existing styles remain unchanged, adding new styles for drop area and progress bar */
.drop-area {
    border: 2px dashed #6B7280;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    background: #1A1A1A;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #9CA3AF;
}
.drop-area.dragover {
    background: #242424;
    border-color: #4B5563;
}
.drop-area p {
    margin: 0;
    color: #E5E5E5;
    font-size: 14px;
}
/* Elastic Textarea */
.comment-input-wrapper {
    position: relative;
    align-items: flex-end;
    gap: 10px;
    font-size: 16px;
    font-family: inherit;
}
.comment-input {
    min-height: 40px;
    overflow-y: auto;
    resize: none;
}
/* Social Network Style Comments */
.comment {
    background: #242424;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    transition: background 0.3s ease;
    border: 1px solid rgba(75, 85, 99, 0.1);
}
.comment:hover {
    background: #1A1A1A;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.comment-avatar {
    width: 32px;
    height: 32px;
    background: #6B7280;
    color: #111827;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}
.comment-meta {
    display: flex;
    flex-direction: column;
}
.comment-meta strong {
    color: #E5E5E5;
    font-size: 14px;
}
.comment-time {
    color: #9CA3AF;
    font-size: 12px;
}
.comment-body {
    margin-bottom: 8px;
    font-size: 14px;
    color: #E5E5E5;
    word-wrap: break-word;
}
.comment-actions {
    display: flex;
    gap: 10px;
}
.comment-actions button {
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    display: block;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
    font-family: inherit;
}
.comment-actions button:hover {
    color: #6B7280;
}
/* Autocomplete */
.collaborator-autocomplete {
    position: relative;
    margin-bottom: 10px;
}
.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #242424;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    max-height: 150px;
    overflow-y: auto;
    z-index: 999999999999999999999999999999;
    display: none;
    border: 1px solid rgba(75, 85, 99, 0.2);
}
.suggestion {
    padding: 8px 12px;
    color: #E5E5E5;
    cursor: pointer;
    transition: background 0.3s ease;
}
.suggestion:hover {
    background: rgba(75, 85, 99, 0.2);
    color: #6B7280;
}
.task-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.delete-task {
    background: #4B5563; /* Darker gray for delete */
    color: #E5E5E5;
    padding: 0px 16px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
}
.delete-task:hover {
    background: #374151;
}
.task-details dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0px;
    margin-bottom: 20px;
    background-color: #242424;
    border-radius: 8px;
}
.task-details dt {
    font-weight: 500;
    padding: 8px;
    color: #E5E5E5;
    min-width: 150px;
}
.task-details dd {
    margin: 0;
    color: #E5E5E5;
    background-color: #1A1A1A;
    padding: 8px;
}
.task-details dd:first-of-type {
    -webkit-border-top-right-radius: 8px;
    -moz-border-radius-topright: 8px;
    border-top-right-radius: 8px;
}
.task-details dd:last-of-type {
    -webkit-border-bottom-right-radius: 8px;
    -moz-border-radius-bottomright: 8px;
    border-bottom-right-radius: 8px;
}
.urgency {
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: capitalize;
}
.urgency.green { background: rgba(107, 114, 128, 0.2); color: #6B7280; }
.urgency.amber { background: rgba(156, 163, 175, 0.2); color: #9CA3AF; }
.urgency.red { background: rgba(156, 163, 175, 0.2); color: #9CA3AF; }
.task-screen {
    /* Fallback static gradient: darker at the bottom */
    background: linear-gradient(to bottom, #1A1A1A, #0C0C0C);
    /* Animated gradient with deeper blacks */
    background-image: linear-gradient(135deg, #1A1A1A, #0C0C0C, #0A0A0A);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
    padding-bottom: 100px;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.force-white {
    color: #E5E5E5 !important;
}
.global-toggle {
    overflow: hidden;
}

/* Contacts Table Styles */
.contacts-table {
    width: 100%;
    border-collapse: collapse;
    background: #1A1A1A;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}
.contacts-table th {
    background: #242424;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #6B7280;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}
.contacts-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.1);
    color: #E5E5E5;
}
.contacts-table tr:hover {
    background: rgba(75, 85, 99, 0.05);
    cursor: pointer;
}
.contacts-table tr:last-child td {
    border-bottom: none;
}

/* Detail View Styles */
.detail-view {
    display: none;
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background: #1A1A1A;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.detail-view.active {
    display: block;
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.detail-title {
    font-size: 24px;
    color: #E5E5E5;
}
.edit-btn, .update-btn, .cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: background 0.2s;
}
.edit-btn {
    background: #6B7280;
    color: #111827;
}
.edit-btn:hover {
    background: #4B5563;
}
.update-btn {
    background: #6B7280;
    color: #111827;
}
.update-btn:hover {
    background: #4B5563;
}
.cancel-btn {
    background: #374151;
    color: #E5E5E5;
}
.cancel-btn:hover {
    background: #4B5563;
}
.detail-field {
    margin-bottom: 16px;
}
.detail-field label {
    display: block;
    margin-bottom: 4px;
    color: #9CA3AF;
    font-weight: 500;
}
.detail-field input, .detail-field textarea {
    width: 100%;
    padding: 12px;
    background: #242424;
    border: 1px solid rgba(75, 85, 99, 0.3);
    color: #E5E5E5;
    border-radius: 4px;
    font-family: inherit;
}
.detail-field input[readonly], .detail-field textarea[readonly] {
    background: #1A1A1A;
    color: #E5E5E5;
}

/* Mobile Responsive Table */
@media screen and (max-width: 768px) {
    .contacts-table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        margin: 0;
    }
    .contacts-table thead {
        display: none;
    }
    .contacts-table tbody,
    .contacts-table tr {
        width: 100%;
        display: block;
        margin-bottom: 12px;
        border: 1px solid rgba(75, 85, 99, 0.2);
        border-radius: 8px;
        background: #1A1A1A;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .contacts-table td {
        display: block;
        text-align: right;
        padding: 12px 16px;
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid rgba(75, 85, 99, 0.1);
        width: 100%;
        box-sizing: border-box;
    }
    .contacts-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 16px;
        width: 45%;
        font-weight: 600;
        color: #6B7280;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .contacts-table td:last-child {
        border-bottom: none;
        padding: 12px 16px;
        text-align: center;
        padding-left: 16px;
    }
    .contacts-table td:last-child:before {
        display: none;
    }
    .contacts-table button {
        width: 100%;
        padding: 10px;
        background: #6B7280;
        color: #111827;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
    }
}
/* Subtle 64px-high pass HUD */
.subtle-pass {
    height: 64px;

    background: rgba(0, 0, 0, 0.1);
	border-radius: 16px;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(18.5px);
	-webkit-backdrop-filter: blur(18.5px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    max-width: 320px;
    color: white;
    left: 67px;
  
}

/* Tiny rotated level stripe on the left */
.pass-level-rotated {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 36px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
    background: #1a1a1a;
}

/* Photo */
.subtle-pass .pass-photo {
    margin-left: 44px;
    margin-right: 12px;
    margin-top: 8px;
}
.subtle-pass .pass-photo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

/* Name */
.subtle-pass .pass-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Level-specific colors (very subtle glow only on the stripe) */
.subtle-pass[data-level="AAA"]  .pass-level-rotated { background: #c92a5e; }
.subtle-pass[data-level="AA"]   .pass-level-rotated { background: #d35400; }
.subtle-pass[data-level="AP"]   .pass-level-rotated { background: #e67e22; }
.subtle-pass[data-level="ASP"]  .pass-level-rotated { background: #8e44ad; }
.subtle-pass[data-level="AHP"]  .pass-level-rotated { background: #16a085; }
.subtle-pass[data-level="VIP"]  .pass-level-rotated { background: #9b59b6; }
.subtle-pass[data-level="GA+"]  .pass-level-rotated { background: #00b894; }
.subtle-pass[data-level="GA"]   .pass-level-rotated { background: #2980b9; }
.subtle-pass[data-level="SA"]   .pass-level-rotated { background: #7f8c8d; opacity: 0.7; }

/* Optional: tiny hover glow */
.subtle-pass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
/* ============================================
   PRODUCT MODAL STYLES
   ============================================ */

.productModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.productModal.hidden {
    display: none;
}

.productModalContent {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
textarea {
    font-family: inherit;
}
input {
    font-family: inherit;
}
.productModalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

.productModalHeader h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
}

.iconBtn {
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: 0.3s;
}

.iconBtn:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

#productForm {
    padding: 32px;
}

/* TOP EDITOR GRID */
.editorGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.editorColumn {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fieldGroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fieldLabel {
    font-weight: 600;
    color: #2d3436;
    font-size: 15px;
}

.fieldInput {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.3s;
    background: #fafafa;
}

.fieldInput:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.fieldRow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* TOGGLES */
.toggleRowWrap {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.toggleField {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggleSwitch {
    position: relative;
    width: 64px;
    height: 32px;
    background: #ccc;
    border: none;
    border-radius: 32px;
    cursor: pointer;
    transition: 0.3s;
}

.toggleSwitch.active {
    background: #4CAF50;
}

.toggleKnob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggleSwitch.active .toggleKnob {
    transform: translateX(32px);
}

.toggleText {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.toggleSwitch.active .toggleText {
    left: 8px;
    right: auto;
    color: #fff;
}

/* DROPZONES */
.dropzone {
    border: 2px dashed #ddd;
    border-radius: 16px;
    background: #fafafa;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.dropzone:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.mainDropzone {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzoneInner {
    text-align: center;
    padding: 40px;
    pointer-events: none;
}

.dropTitle {
    font-weight: 600;
    color: #2d3436;
    margin: 12px 0 8px;
    font-size: 16px;
}

.dropHint {
    color: #999;
    font-size: 14px;
}

.mainImagePreview {
    width: 100%;
    max-height: 240px;
    object-fit: contain;
    border-radius: 14px;
}

/* GALLERY */
.galleryDropzone {
    padding: 40px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mediaGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.mediaItem {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1;
}

.mediaItem img,
.mediaItem video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.removeMedia {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.95);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.removeMedia:hover {
    background: #c0392b;
    transform: scale(1.1);
}

/* PANELS */
.panel {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.panelHeader {
    margin-bottom: 16px;
}

.panelHeader h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
}

.panelHeader p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.twoColPanel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

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

/* CHECKBOX LISTS */
.checkboxList {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    padding: 8px;
    margin-top: 12px;
}

.checkboxItem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.2s;
}

.checkboxItem:hover {
    background: #f0f0f0;
}

.checkboxItem input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkboxItem span {
    color: #2d3436;
    font-size: 14px;
}

/* BUTTONS */
.modalButtons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    margin-top: 32px;
}

.btnSecondary,
.btnPrimary {
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btnSecondary {
    background: #f0f0f0;
    color: #2d3436;
}

.btnSecondary:hover {
    background: #e0e0e0;
}

.btnPrimary {
    background: #333;
    color: #fff;
}

.btnPrimary:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btnPrimary:disabled {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .editorGrid {
        grid-template-columns: 1fr;
    }

    .twoColPanel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .productModalContent {
        max-height: 100vh;
        border-radius: 0;
    }

    #productForm {
        padding: 20px;
    }

    .fieldRow {
        grid-template-columns: 1fr;
    }

    .toggleRowWrap {
        flex-direction: column;
        gap: 16px;
    }

    .mediaGrid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .modalButtons {
        flex-direction: column;
    }

    .btnSecondary,
    .btnPrimary {
        width: 100%;
    }
}
.empty-state {
    width: 100% !important;
    margin: 0 auto !important;
}

.blockout-item { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-bottom: 1px solid #eee; }
.blockout-item button { background: #e74c3c; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; }
#blockoutsSection input[type="date"] { margin-right: 10px; }