*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    font-weight: 300;
}


/* =============================================================================
   THEME SYSTEM - CSS Custom Properties
   ============================================================================= */

/* Light theme (default) - Applied when no data-theme attribute is present */
:root {
    /* Theme-specific colors */
    --bg-color: #f4f4f4;
    --panel-bg: #f4f4f4d6;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0,0,0,0.04);
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: rgba(0, 0, 0, 0.15);

    /* Brand colors */
    --white-color: #fff;
    --dark-color: #252525;
    --primary-color: #1f1e21;
    --primary-darker: #1b1b1c;
    --secondary-color: #0077ff;
    --dark-gray-color: #303030;
    --medium-gray-color: #ccc;

    /* Typography */
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.3rem;

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Layout */
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;

    /* Transitions */
    --theme-transition-duration: 0.3s;
    --theme-transition-easing: ease-in-out;
}

/* =============================================================================
   DARK THEME OVERRIDES
   ============================================================================= */

/* Dark theme for specific elements only */
.control-panel[data-theme="dark"],
.mobile-taskbar[data-theme="dark"],
.floating-pill-vertical[data-theme="dark"],
.panel-collapse-tab[data-theme="dark"],
#background[data-theme="dark"] {
    --panel-bg: rgba(42, 42, 42, 0.9);
    --text-color: #f9fafb;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0,0,0,0.2);
    --glass-bg: rgba(42, 42, 42, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --medium-gray-color: #333333;

    /* Smooth transitions for theme changes */
    transition:
        transform 0.3s ease,
        background var(--theme-transition-duration) var(--theme-transition-easing),
        border-color var(--theme-transition-duration) var(--theme-transition-easing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-easing);
}

/* Global dark mode styles - applied when data-theme="dark" is on any parent element */
[data-theme="dark"] .panel-header .title,
[data-theme="dark"] .section-headerP,
[data-theme="dark"] .tile span,
[data-theme="dark"] .task-icon,
[data-theme="dark"] .project-files-btn {
    color: #f9fafb !important;
}

[data-theme="dark"] .tile .icon i,
[data-theme="dark"] .project-files-btn .icon i {
    color: #f9fafb !important;
}

[data-theme="dark"] .control-panel,
[data-theme="dark"] .mobile-taskbar,
[data-theme="dark"] .floating-pill-vertical,
[data-theme="dark"] .panel-collapse-tab {
    background: rgba(42, 42, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}


/* Dark mode styles for control panel */
.control-panel[data-theme="dark"] {
    background: var(--glass-bg);
    border-right: 2px solid rgba(0, 119, 255, 0.3);
    box-shadow: var(--shadow-color);
    transition:
        transform 0.3s ease,
        background var(--theme-transition-duration) var(--theme-transition-easing),
        border-color var(--theme-transition-duration) var(--theme-transition-easing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-easing);
}

.control-panel[data-theme="dark"] .panel-header .title {
    color: #f9fafb;
}


.control-panel[data-theme="dark"] .section-headerP {
    background: rgba(30, 30, 30, 0.6);
    border-top: 1px solid var(--border-color);
    color: #f9fafb;
}


.control-panel[data-theme="dark"] .tile {
    background: transparent;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.control-panel[data-theme="dark"] .tile:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}

.control-panel[data-theme="dark"] .tile .icon i {
    color: #f9fafb !important;
}


/* Ensure icons change to white in dark mode */
[data-theme="dark"] .tile .icon i {
    color: #f9fafb !important;
}

/* Ensure floating vertical pill icons change to white in dark mode */
[data-theme="dark"] .floating-pill-vertical button span.icon {
    color: #f9fafb !important;
}

/* Ensure ghost text in editable elements is lighter white in dark mode */
[data-theme="dark"] .editable-text:empty::before {
    color: #f9fafb !important;
    opacity: 0.6 !important;
}

[data-theme="dark"] .todo-text.placeholder {
    color: #f9fafb !important;
    opacity: 0.6 !important;
}

.control-panel[data-theme="dark"] .tile span {
    color: #f9fafb;
}


/* Dark mode styles for mobile taskbar */
.mobile-taskbar[data-theme="dark"] {
    background: var(--glass-bg);
    border-right: 2px solid rgba(0, 119, 255, 0.3);
}

.mobile-taskbar[data-theme="dark"] .task-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #f9fafb;
}


.mobile-taskbar[data-theme="dark"] .task-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Dark mode styles for floating pill vertical */
.floating-pill-vertical[data-theme="dark"] {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--glass-shadow);
}

.floating-pill-vertical[data-theme="dark"] button:hover {
    background: rgba(0,0,0,0.1);
}

.floating-pill-vertical[data-theme="dark"] button.active {
    background: rgba(0,0,0,0.2);
}

/* Dark mode styles for panel collapse tab */
.panel-collapse-tab[data-theme="dark"] {
    background: var(--glass-bg);
    border-left: 2px solid rgba(0, 119, 255, 0.3);
    box-shadow: var(--shadow-color);
    color: #f9fafb;
    transition: left 0.3s ease;
}

/* Dark mode styles for background */
#background[data-theme="dark"] {
    --medium-gray-color: #333333;
    background: #333333 !important;
}


/* Dark mode styles for work area */
.work-area[data-theme="dark"] {
    background: #1a1a1a;
}

/* Dark mode styles for viewport */
#viewport[data-theme="dark"] {
    background: #1a1a1a;
}

/* Dark mode styles for panel */
.panel[data-theme="dark"] {
    background: rgba(0, 0, 0, 0.9);
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6000;
    color: #1f2937;
    transition: background 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-taskbar .task-icon {
    background: transparent;
    color: #1f2937;
}

.mobile-taskbar .task-icon:hover {
    background: rgba(0,0,0,0.08);
}

/* Theme toggle button - positioned below floating pill menu */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    margin-top: 220px; /* Position below floating pill menu */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-s);
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1f2937;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    z-index: 10000;
}

.theme-toggle:hover {
    background: var(--glass-bg);
    transform: scale(1.05);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle i {
    transform: rotate(180deg);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;

}

button{
    cursor: pointer;
    border: none;
    background: none;
}

img{
    width: 100%;
}

.section-content{
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

.section-title{
    text-align: center;
    padding: 0 20px;
    max-width: var(--site-max-width);
    font-size: var(--font-size-xl);
}

.section-title::after{
    content: "";
    width: 80px;
    display: block;
    margin: 10px auto;
    border-radius: var(--border-radius-s);
    background: #0077ff;
}


header{
    position: fixed;
    width: 100%;
    z-index: 999999999;
    background: linear-gradient(135deg, rgb(0, 0, 0) 10%, rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(8px);
    box-shadow: 30px 50px 70px rgba(0, 0, 0, 0.15);
    align-items: center;
}
#page-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 10%, rgba(0, 0, 0, 0.25) 100%);
    transition: transform 0.5s ease;
    z-index: 999999;
    transform: translateY(0); /* initially visible */
}

#page-header.hidden {
  transform: translateY(-100%);
}

header .navbar{
    display: flex;
    height: 100%;
    padding: 10px;
    align-items: center;
    justify-content: space-between;
}
.navbar .nav-logo{
    display: flex;
    align-items: center;
    align-self: center;
}

.navbar .nav-logo .logo-nav{
    max-width: 70%;
    padding-right: 10px;
}
.navbar .nav-logo .logo-text{
    color: var(--white-color);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    align-self: center;
    align-items: center;
}

.navbar .nav-menu {
    display: flex;
    gap: 5px;
}

.profile{
background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 10%, rgba(0, 0, 0, 0.15) 100%);
padding: 15px 40px;
border: none;
outline: none;
cursor: pointer;
position: relative;
border-radius: 12px;
z-index: 0;
font-size: var(--font-size-m);
color: var(--white-color);
}

.profile::after{
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 10%, var(--dark-gray-color) 100%);
    left: 0;
    top: 0;
    border-radius: 10px;
}

.profile::before{
    content: "";
    background: linear-gradient(45deg, #FF0000, #FF7300, #FFFB00, #48FF00, #00FFD5, #002BFF, #FF00C8, #FF0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
    opacity: 0;
}

@keyframes glowing{
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}

.profile:hover::before{
    opacity: 1;
}

.profile:active::after{
    background: transparent;
}

.profile:active{
    color: #000;
    font-weight: var(--font-weight-semibold);
}

.profile2{
background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 10%, rgba(0, 0, 0, 0.15) 100%);
padding: 15px 40px;
border: none;
outline: none;
cursor: pointer;
position: relative;
border-radius: 12px;
z-index: 0;
font-size: var(--font-size-m);
color: var(--white-color);
width: 100%;
}

.profile2::after{
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 10%, var(--dark-gray-color) 100%);
    left: 0;
    top: 0;
    border-radius: 10px;
}

.profile2::before{
    content: "";
    background: linear-gradient(45deg, #FF0000, #FF7300, #FFFB00, #48FF00, #00FFD5, #002BFF, #FF00C8, #FF0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
    opacity: 0;
}

@keyframes glowing{
    0% {background-position: 0 0;}
    50% {background-position: 400% 0;}
    100% {background-position: 0 0;}
}

.profile2:hover::before{
    opacity: 1;
}

.profile2:active::after{
    background: transparent;
}

.profile2:active{
    color: #000;
    font-weight: var(--font-weight-semibold);
}

.navbar .nav-menu .nav-link{
    padding: 10px 18px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover{
    color: var(--white-color);
    background: #0077ff;
}

.navbar :where(#menu-close-button, #menu-open-button){
    display: none;
}

/* Share Button Styles */
.share-container {
    position: relative;
    margin-left: auto;
}

.share-button {
    background: linear-gradient(135deg, rgba(135, 135, 135, 0.15) 10%, rgba(77, 77, 77, 0.15) 100%);
    padding: 10px 15px;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    z-index: 0;
    font-size: var(--font-size-s);
    color: var(--white-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-button::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ccc 10%, #aaa 100%);
    left: 0;
    top: 0;
    border-radius: 10px;
}

/*.share-button::before {
    content: "";
    background: linear-gradient(45deg, #FF0000, #FF7300, #FFFB00, #48FF00, #00FFD5, #002BFF, #FF00C8, #FF0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
    opacity: 0;
}*/

.share-button:hover::before {
    opacity: 1;
}

.share-button:active::after {
    background: transparent;
}

.share-button:active {
    color: #000;
    font-weight: var(--font-weight-semibold);
}

/* Dark mode styles for share button */
.share-button[data-theme="dark"] {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f9fafb;
    transition: background var(--theme-transition-duration) var(--theme-transition-easing), border-color var(--theme-transition-duration) var(--theme-transition-easing), color var(--theme-transition-duration) var(--theme-transition-easing);
}

.share-button[data-theme="dark"]::after {
    background: linear-gradient(135deg, #333 10%, #555 100%);
}

.share-button[data-theme="dark"]:hover::before {
    opacity: 0.5;
}

.share-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.share-dropdown.show {
    display: block;
}

.share-option {
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--white-color);
    text-align: left;
    cursor: pointer;
    font-size: var(--font-size-m);
    transition: background 0.2s ease;
}

.share-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.share-option:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.home-section{
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 10%, var(--dark-gray-color) 100%);
    background-attachment: fixed;
}

.aboutus-section{
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 10%, var(--dark-gray-color) 100%);
}
.home-section .section-content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    color: var(--white-color);
    z-index: 1;
    background: transparent;
}

.aboutus-section .section-content{
    display: flex;
    padding-top: 150px;
    align-items: center;
    min-height: 50vh;
    color: var(--white-color);
    justify-content: space-between;
    z-index: 1;
}

.home-section .section-details .title{
    font-size: var(--font-size-xxl);
    color: #0077ff;
    font-family: "Jost", sans-serif;
    z-index: 1;
}

.aboutus-section .section-details .title{
    font-size: var(--font-size-xxl);
    color: #0077ff;
    font-family: "Jost", sans-serif;
    z-index: 1;
}

.home-section .section-details{
    z-index: 1;
    justify-content: space-between;
}

.aboutus-section .section-details{
    margin-left: 30px;
    z-index: 1;
}

.home-section .section-details .subtitle{
    margin-top: 8px;
    max-width: 70%;
    font-size: var(--font-size-xxl);
    font-weight: var(--font-weight-semibold);
    z-index: 1;
}

.aboutus-section .section-details .subtitle{
    margin-top: 8px;
    max-width: 50%;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
    z-index: 1;
}

.home-section .section-details .description{
    max-width: 100%;
    font-size: var(--font-size-m);
    z-index: 1;
}

.aboutus-section .section-details .description{
    max-width: 100%;
    font-size: var(--font-size-m);
    z-index: 1;
}



.home-section .section-details .buttons{
    display: flex;
    gap: 23px;
    z-index: 1;
} 

.home-section .section-details .button{
    padding: 10px 26px;
    border: 2px solid transparent;
    color:  var(--primary-color);
    border-radius: var(--border-radius-m);
    background: #0077ff;
    font-weight: var(--font-weight-medium);
    transition: 0.3 ease;
    z-index: 1;
}

.home-section .section-details .button:hover, 
.home-section .section-details .sign-up{
    color:  var(--white-color);
    border-color: var(--white-color);
    background: transparent;
    z-index: 1;
}

.home-section .section-details .sign-up:hover{
    color:  var(--primary-color);
    border-color: #0077ff;
    background: #0077ff;
    z-index: 1;
}

.home-section .image-wrapper{
    max-width: 450px;
    margin-right: 30px;
    z-index: 1;
}

.aboutus-section .image-wrapper{
    max-width: 500px;
    min-width: 400px;
    margin-right: 30px;
    z-index: 1;
}

.the-team{
padding: 50px 0 100px;
background-color: var(--primary-color);
color: var(--white-color);
}

.the-team .slider-wrapper{
    overflow: hidden;
    margin: 0 60px 50px;
}

.the-team .title{
font-weight: var(--font-weight-semibold);
font-size: var(--font-size-xl);
color: #0077ff;

    font-family: "Jost", sans-serif;
}

.the-team .team-member{
    display: flex;
    padding: 35px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    color: var(--white-color);
}

.the-team .team-member .team-member-image{
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin-bottom: 50px;
    border-radius: var(--border-radius-circle);
}

.the-team .team-member .team-initial-icon{
    width: 180px;
    height: 180px;
    margin-bottom: 50px;
    border-radius: var(--border-radius-circle);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.the-team .team-member .name{
    margin-bottom: 16px;
    font-size: var(--font-size-m);
    color: var(--white-color);
}

.the-team .team-member .desc{
    line-height: 25px;
    color: var(--white-color);
}

.the-team .swiper-pagination-bullet{
    width: 15px;
    height: 15px;
    opacity: 1;
    background: #0077ff;
}

.the-team .swiper-slide-button{
    margin-top: -50px;
    color: var(--white-color);
    transition: 0.3s ease;
}
.the-team .swiper-slide-button:hover{
    color: var(--primary-color);
}

/*About-Us*/
.about-section{
    padding: 120px 0;
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    align-items: center;
}

.about-section .section-content{
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
}

.about-section .about-image-wrapper .about-image{
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-circle);
}

.about-section .about-details .section-title{
    padding: 0;
    font-size: var(--font-size-xxl);
    color: #0077ff;
    font-family: "Jost", sans-serif;
}

.about-section .about-details .section-subtitle{
    padding: 0;
    text-align: center;
    color: var(--white-color);
}

.about-section .about-details{
    max-width: 50%;
}
.about-section .about-details .text{
    line-height: 30px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: var(--font-size-m);
    color: var(--white-color);
}

.about-section .social-link-list{
    display: flex;
    gap: 25px;
    justify-content: center;
}

.about-section .social-link-list .social-link{
    color: var(--white-color);
    font-size: var(--font-size-l);
}

.about-section .social-link-list .social-link:hover{
    color: #0077ff;
    font-size: var(--font-size-l);
    transition: 0.2s ease;
}

/*aspects section*/

.aspects-section{
    color: var(--white-color);
    background: linear-gradient(135deg, var(--primary-color) 10%, var(--dark-gray-color) 100%);
    padding-bottom: 150px;
    padding-top: 120px;
    text-align: center;
}
.aspects-section .section-title{
    color: #0077ff;
    font-size: var(--font-size-xxl);
    font-family: "Jost", sans-serif;
}

.aspects-section .section-subtitle{
    font-weight: var(--font-weight-medium);
    color: var(--white-color);
    text-align: center;
    padding-bottom: 100px;
}

.aspects-section::before, .aspects-section::after{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    opacity: 0.4;
}

.aspects-section::before{
    clip-path: circle(30% at left 20%);
    background: linear-gradient(135deg, var(--dark-gray-color) 10%, var(--primary-color) 100%);
    z-index: 0;
}

.aspects-section::after{
    clip-path: circle(25% at right 80%);
    background: linear-gradient(135deg, var(--dark-gray-color) 10%, var(--primary-color) 100%);
    z-index: 0;
}

.aspects-section .aspects-list{
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 110px;
    align-items: center;
    justify-content: space-between;
}

.aspects-section .aspects-list .aspects-item{
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: space-between;
    width: calc(100% / 3 -110px);
}

.aspects-section .aspects-list .aspects-item .aspects-image-wrapper{
    max-width: 70%;
    aspect-ratio: 1;
    margin-bottom: 25px;
    object-fit: contain;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.aspects-section .aspects-list .aspects-item .name{
    margin: 15px 0;
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
}

.aspects-section .aspects-list .aspects-item .text{
    font-size: var(--font-size-m);
}

.aspects-section .aspects-list .aspects-item .aspects-image-wrapper img{
    transition: transform 0.5s ease-in-out;
    transform-origin: center;
}

.aspects-section .aspects-list .aspects-item .aspects-image-wrapper img:hover{
    transform: rotateY(15deg) scale(1.15);
}

/*Contact*/

.contact-section{
    padding: 50px 0 100px;
    background: var(--primary-color);
    color: var(--white-color);
    align-items: center;
}

.contact-section .contact-title{
    color: #0077ff;
    font-size: var(--font-size-xxl);
    font-family: "Jost", sans-serif;
    align-items: center;
    padding-left: 50px;
}

.contact-section .section-content{
    display:flex;
    gap: 48px;
    align-items:center;
    justify-content: space-between;
}

.contact-section .contact-info-list .contact-info{
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

.contact-section .contact-info-list .contact-info i {
    font-size: var(--font-size-m);
}

.contact-section .contact-form{
    max-width: 50%;
}


.contact-section .contact-form .form-input{
    width: 100%;
    margin-bottom: 10px;
    height: 50px;
    padding: 20px;
    outline: none;
    background: var(--white-color);
    border-radius: var(--border-radius-s);
    border: 1px solid var(--primary-darker);
}

.contact-section .contact-form .form-input:focus{
    border-color: #0077ff;
}

.contact-section .contact-form textarea{
    height: 100px;
    padding: 20px;
    resize: vertical;
}

.contact-section .contact-form .submit-button{
    padding: 10px 26px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-medium);
    background: #0077ff;
    border-radius: var(--border-radius-m);
    border: 1px solid var(--primary-color);
    transition: 0.3s ease;
}

.contact-section .contact-form .submit-button:hover{
    background: transparent;
    color: var(--white-color);
}

/*Footer*/

.footer-section{
    padding:  20px 0;
    background: var(--primary-darker);
    padding-bottom: 20px;
    align-items: center;
}

.footer-section .section-content{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.footer-section :where(.copyright-text, .social-link, .policy-text){
    color: var(--white-color);
    transition: 0.2s ease;
}

.footer-section .social-link-list{
    display: flex;
    gap: 25px;
}

.footer-section .social-link-list .social-link{
    font-size: var(--font-size-l);
}

.footer-section .social-link-list .social-link:hover{
    color: #0077ff;
}

.footer-section .policy-text .seperator{
    margin: 0 5px;
    color: var(--white-color);
}

/*Team Members*/


/*Login*/

.background{
width: 100%;
height: 100vh;
background: url('Back.png') no-repeat;
background-size:cover;
background-position: center;
filter: blur(5px);
z-index: 0;
}


.container{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: var(--border-radius-m);
    width: 75%;
    height: 500px;
    background: url('Back.png') no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: 20px;
    border: 1px solid;
}

.container .content{
    position: absolute;
    top: 0;
    left: 0;
    width: 58%;
    height: 100%;
    padding: 80px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    color: var(--white-color);
    background: transparent;
}

.container .logreg-box{
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 58%);
    height: 100%;
    overflow: hidden;
    background: transparent;
    color: var(--white-color);
}

.content .logo{
    font-size: var(--font-size-xl);
    font-family: "Jost", sans-serif;
    
}

.text-sci h2{
    font-size: var(--font-size-xxl);
    line-height: 1;
    padding-bottom: 5px;
    font-family: "Jost", sans-serif;
}

.text-sci h2 span{
    font-size: var(--font-size-l);
    padding-bottom: 5px;
}

.text-sci p{
    font-size: var(--font-size-m);
    padding-bottom: 5px;
}

.logreg-box .form-box{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: transparent;
    backdrop-filter: blur(20px);
    border-top-right-radius:var(--border-radius-m);
    border-bottom-right-radius: var(--border-radius-m);
    color: var(--white-color);
}

.logreg-box .form-box.login{
    transform: translateX(0);
    transition: transform .6s ease;
    transition-delay: .7s;
}

.logreg-box.active .form-box.login{
    transform: translateX(430px);
    transition-delay: 0s;
}

.logreg-box .form-box.register{
    transform: translateX(430px);
    transition: transform .6s ease;
    transition-delay: 0s;
}

.logreg-box.active .form-box.register{
    transform: translateX(0);
    transition-delay: .7s;
}

.form-box h2{
    font-size: var(--font-size-xl);
    text-align: center;
}

.form-box .input-box{
    position: relative;
    width: 340px;
    height: 50px;
    border-bottom: 2px solid var(--white-color);
    margin: 30px 0;
}

.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: var(--font-size-s);
    color: var(--white-color);
    font-weight: var(--font-weight-normal);
}

.input-box label{
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-semibold);
    pointer-events: none;
}

.input-box input:focus~label, .input-box input:valid~label{
    top: -5px;
}

.input-box .icon{
    position: absolute;
    top: 13px;
    right: 0;
    font-size: 19px;
}

.form-box .remember-forgot{
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-normal);
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}

.remember-forgot label input{
    accent-color: var(--white-color);
    margin-right: 3px;
}

.remember-forgot a {
    color: var(--white-color);
    text-decoration: none;
}

.remember-forgot a:hover{
    text-decoration: underline;
}

.form-box .login-register{
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-normal);
    text-align: center;
    margin-top: 25px;
}

.login-register p a{
    color: var(--white-color);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
}
.login-register p a:hover{
    text-decoration: underline;
}




.slide-in{
    animation: slide-in 0.5s ease forwards;
}

/*.project-page{
    width: 100vw;
    height: 100vw;
    display: flex;
    padding-left: 20px;
}*/

.side-panel{
    margin-top: 5%;
    width: 30%;
    height: 80vh;
    background: linear-gradient(135deg, var(--dark-color) 10%, var(--dark-gray-color) 100%) ;
    border-radius: var(--border-radius-m);
    display: flex;
    flex-direction: column;
}
.side-panel .header-panel{
    display: flex;
    width: 100vw;
    height: 15vh;
    align-items: center;
    align-content: space-between;
}

.side-panel .grid-panel{
    display: flex;
    flex-wrap: wrap;
    width: 30vw;
    height: 80vh;
    align-items: center;
    justify-content: space-between;
}

.panel-header{
    font-size: var(--font-size-l);
    color: var(--white-color);
    font-weight: var(--font-weight-semibold);
    background: transparent;
}


.work-area{
height: 100vh;
width: 100vw;
position: relative;
overflow: hidden;
background: #6b7280;
align-items: center;
display: flex;
}

.control-panel {
    width: 270px;
    top: 35px;         /* distance from top of viewport */
    bottom: 35px;
    background: var(--panel-bg);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-color);
    display: flex;
    overflow: hidden;
    flex-direction: column;
    position: fixed;
    z-index: 4000;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-m);
    left: 36px;
    transition: transform 0.3s ease;

}

.panel-collapse-tab {
    position: fixed;
    left: 306px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 100px;
    background: var(--panel-bg);
    border-right: 1px solid var(--border-color);
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    z-index: 4001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 30px 10px 30px rgba(0,0,0,0.04);
    color: rgb(40, 40, 40);
    transition:
        left 0.3s ease,
        background var(--theme-transition-duration) var(--theme-transition-easing),
        border-color var(--theme-transition-duration) var(--theme-transition-easing),
        box-shadow var(--theme-transition-duration) var(--theme-transition-easing),
        color var(--theme-transition-duration) var(--theme-transition-easing);
}

.panel-collapse-tab.collapsed i {
    transform: rotate(180deg);
}



.control-panel::-webkit-scrollbar {
    display: none;
}

.floating-pill-vertical {
    position: fixed;
    top: 24px;
    right: 24px;
    background: ghostwhite;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px;
    backdrop-filter: blur(12px);
    border-radius: 999px;
    box-shadow: var(--shadow-color);
    z-index: 5000;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* Buttons */
.floating-pill-vertical button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;
    padding: 6px;

    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;

    overflow: hidden;
    transition: height 0.25s ease, background 0.2s ease;
}

/* Icon */
.floating-pill-vertical .icon {
    font-size: 20px;
    line-height: 1;
}

.floating-pill-vertical .icon i {
    margin: 0;
    padding: 0;
    display: block;
    transform: none;
}

/* Label (hidden by default) */
.floating-pill-vertical .label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Expand vertically on hover */
.floating-pill-vertical:hover button {
    height: 56px; /* just enough to fit icon + text */
}

/* Reveal labels */
.floating-pill-vertical:hover .label {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effect */
.floating-pill-vertical button:hover {
    background: rgba(0,0,0,0.08);
}

/* Active state (Grid ON) */
.floating-pill-vertical button.active {
    background: rgba(0,0,0,0.15);
}



.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-header .title {
    font-weight: 700;
    font-size: var(--font-size-m);
    letter-spacing: 0.05em;
    color: #1f2937;
}

#viewport {
    position: fixed;
    inset: 0;
    overflow: visible; /* IMPORTANT */
    transform-origin: 0 0;
    z-index: auto;
}


#background {
    pointer-events: none; /* never steal input */
}


#canvas {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
}

.marketplace {
    background: none;
    border: none;
    color: #22c55e;
    font-weight: 600;
    cursor: pointer;
}

.panel-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.panel-search input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 14px;
}

.section-headerP {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: none;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
}

.panel-section .chevron {
  transition: transform 0.25s ease;
}

.panel-section.open .chevron {
  transform: rotate(180deg);
}

.section-contentP {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.panel-section.open .section-contentP {
  max-height: 500px;
}

.section-contentP.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px 16px 18px;
}

.tile {
  all: unset;
  cursor: pointer;

  background:transparent;
  border-radius: 14px;

  height: 88px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;

  box-shadow: 0 6px 16px rgba(0,0,0,0.04);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

/* ===============================
   TILE ICON
================================ */
.tile .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Actual Boxicon */
.tile .icon i {
  font-size: 25px;
  color: #374151; /* clean dark grey */
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

/* Hover polish */
.tile:hover .icon i {
  color: #111827; /* slightly darker on hover */
  transform: translateY(-1px);
}

/* ===============================
   TILE LABEL
================================ */
.tile span {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  text-align: center;
  line-height: 1.2;
}

/* ===============================
   HOVER / ACTIVE STATES
================================ */
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
  background: #f9fafb;
}

.tile:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* Project Files Button at Bottom */
.stuck-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10; /* Ensure it's above other elements */
}

.project-files-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: transparent;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.3s ease;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.project-files-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-files-btn .icon i {
  font-size: 20px;
  color: #374151;
  transition: color 0.18s ease, transform 0.18s ease;
}

.project-files-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  background: #f9fafb;
}

.project-files-btn:hover .icon i {
  color: #111827;
  transform: translateY(-1px);
}

.project-files-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* Dark mode for project files button */
.control-panel[data-theme="dark"] .project-files-btn {
  color: #f9fafb;
}

.control-panel[data-theme="dark"] .project-files-btn .icon i {
  color: #f9fafb;
}

.control-panel[data-theme="dark"] .project-files-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}





/* Project Files Explorer Modal - Minimal Sleek Design */
.project-files-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-files-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(209, 213, 219, 0.85);
  pointer-events: auto;
}








.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 98%;
  max-width: 1400px;
  max-height: 95vh;
  background: #ffffff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.25s ease;
  pointer-events: auto;
}




.project-files-modal.active .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
}



.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  color: #1f2937;
  letter-spacing: -0.02em;
}


.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}


.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 28px;
  max-height: calc(95vh - 80px);
  overflow-y: auto;
  display: flex;
  gap: 24px;
}

/* File Hierarchy Sidebar */
.file-hierarchy-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: #f9fafb;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.file-hierarchy-sidebar:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


.hierarchy-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hierarchy-header i {
  color: #0077ff;
  font-size: 18px;
}


.hierarchy-tree {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hierarchy-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}


.hierarchy-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.hierarchy-item:hover::before {
  left: 100%;
}

.hierarchy-item:hover {
  background: #f3f4f6;
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


.hierarchy-item.active {
  background: linear-gradient(135deg, rgba(0, 119, 255, 0.3), rgba(0, 119, 255, 0.1));
  color: #0077ff;
  border-left: 4px solid #0077ff;
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.2);
}

.hierarchy-item i {
  font-size: 18px;
  color: #0077ff;
  transition: transform 0.2s ease;
}


.hierarchy-item:hover i {
  transform: scale(1.1);
}

.hierarchy-item .count {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 10px;
  transition: background 0.2s ease;
}


.hierarchy-item:hover .count {
  background: #e5e7eb;
}


/* Adjust file sections to take remaining space */
.file-sections {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.file-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.file-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f9fafb;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}


.file-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0077ff, rgba(0, 119, 255, 0.6));
  border-radius: 16px 16px 0 0;
}

.file-section:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* Section-specific styling */
.file-section[data-section="images"]::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.file-section[data-section="videos"]::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.file-section[data-section="palettes"]::before {
  background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.file-section[data-section="documents"]::before {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.section-header i {
  font-size: 20px;
  color: #0077ff;
}


/* Section-specific icon colors */
.file-section[data-section="images"] .section-header i {
  color: #10b981;
}

.file-section[data-section="videos"] .section-header i {
  color: #f59e0b;
}

.file-section[data-section="palettes"] .section-header i {
  color: #8b5cf6;
}

.file-section[data-section="documents"] .section-header i {
  color: #ef4444;
}

.section-header .count {
  color: #6b7280;
  font-weight: 400;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: auto;
}


.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  min-height: 60px;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  color: #6b7280;
  text-align: center;
}

.empty-state i {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.4;
}

.empty-state p {
  margin: 0;
  font-size: 12px;
  opacity: 0.7;
}

.file-item {
  aspect-ratio: 1;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.file-item:hover {
  background: #f3f4f6;
  transform: scale(1.05);
  border-color: #d1d5db;
}


.file-preview {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.file-preview img,
.file-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.palette-preview {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.color-swatch {
  flex: 1;
  height: 100%;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.file-item:hover .play-overlay {
  opacity: 1;
}

.file-info {
  display: none;
}



/* New Item Dropdown Menu */
.new-item-dropdown-menu {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  overflow: hidden;
  z-index: 10001;
}


.dropdown-menu-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  background: none;
  border: none;
  text-align: left;
  width: 100%;
}

.dropdown-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.dropdown-option:hover::before {
  left: 100%;
}

.dropdown-option:hover {
  background: #f3f4f6;
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}


.dropdown-option i {
  font-size: 18px;
  color: #0077ff;
  min-width: 18px;
  transition: transform 0.2s ease;
}

.dropdown-option:hover i {
  transform: scale(1.1);
}

.dropdown-option span {
  flex: 1;
}

/* Folder View Styles */
.folder-content {
  flex: 1;
  padding: 20px;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  min-height: 200px;
}

.folder-item {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}


.folder-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.folder-item:hover::before {
  left: 100%;
}

.folder-item:hover {
  background: #f9fafb;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}


.file-preview-large {
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
}

.file-preview-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview-large {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.video-preview-large i {
  font-size: 32px;
  color: #fff;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.folder-item:hover .play-overlay {
  opacity: 1;
}

.palette-preview-large {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.color-swatch-large {
  width: 100%;
  height: 100%;
}

.file-name {
  font-size: 12px;
  font-weight: 500;
  color: #1f2937;
  text-align: center;
  margin-bottom: 8px;
  word-break: break-word;
  line-height: 1.3;
}

.file-menu {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 16px;
  color: #1f2937;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.folder-item:hover .file-menu {
  opacity: 1;
}

/* Back button styling */
.back-btn {
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
}

.back-btn:hover {
  background: #e5e7eb !important;
}

/* Folder view - always use light theme */
.folder-item {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}

.folder-item:hover {
  background: #f9fafb !important;
}



/* Responsive design for modal */
@media (max-width: 768px) {
  .modal-content {
    width: 92%;
    max-height: 80vh;
  }

  .modal-body {
    padding: 20px;
  }

  .file-sections {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .file-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 6px;
  }

  .folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
  }

  .folder-item {
    padding: 12px;
  }

  .file-preview-large {
    width: 80px;
    height: 80px;
  }

  .dropdown-content {
    padding: 20px;
    max-width: 350px;
  }

  .media-options {
    grid-template-columns: 1fr;
  }
}

/* Mobile Project Files Button in Floating Pill Menu */
#project-files-btn-mobile {
  display: none; /* Hidden by default */
}

/* Show on mobile and small displays */
@media (max-width: 1024px) {
  #project-files-btn-mobile {
    display: block;
  }
}

/* Hide project files button on larger screens */
@media (min-width: 1025px) {
  #project-files-btn-mobile {
    display: none !important;
  }
}





/* Project Files Modal Hierarchy */
.hierarchy-tree {
  padding: 8px 0;
}


.hierarchy-item {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-size: 13px;
  color: #374151;
  position: relative;
}

.hierarchy-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hierarchy-item.active {
  background-color: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.hierarchy-item.folder {
  font-weight: 500;
}

.hierarchy-item.file {
  padding-left: 32px; /* Indent files */
}

.dropdown-icon {
  margin-right: 6px;
  font-size: 14px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.folder-icon {
  margin-right: 8px;
  font-size: 16px;
  color: #d97706;
}

.file-icon {
  margin-right: 8px;
  font-size: 14px;
  color: #6b7280;
}

.hierarchy-item span {
  flex: 1;
}

.count {
  font-size: 11px;
  color: #9ca3af;
  margin-left: auto;
}

.sub-hierarchy {
  display: none;
  margin-left: 16px;
}

.hierarchy-item.expanded .sub-hierarchy {
  display: block;
}

.hierarchy-item.expanded .dropdown-icon {
  transform: rotate(90deg);
}





/* ======================
   Draggable Box
   ====================== */
.draggable-element {
  position: absolute;
  width: 150px;
  height: 100px;
  background: white;
  border-radius: 8px;
  padding: 0;
  box-sizing: border-box;
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.2s;
}



.draggable-element.dragging {
  cursor: grabbing;
    box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Outline only when editing */
.draggable-element.editing {
  outline: 2px solid #3498db;
  outline-offset: -2px;
}


.draggable-element {
  will-change: transform;
}


.todo-item {
  display: flex;
  align-items: center;   /* vertical alignment */
  gap: 8px;              /* space between checkbox and text */
  margin-bottom: 6px;
}

.todo-item input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;        /* prevents checkbox from resizing */
}

.todo-text {
  flex: 1;               /* text takes remaining space */
  outline: none;
  line-height: 1.4;
}

.todo-item input:checked + .todo-text {
  text-decoration: line-through;
  opacity: 0.6;
}


/* ======================
   Editable Text
   ====================== */
.draggable-element.focused {
  outline: 2px solid #4A90E2;
  border-radius: 6px;
}

   
.editable-text {
  width: 100%;
  height: 100%;
  padding: 10px;
  overflow: auto;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: pre-wrap; /* preserve line breaks */
  outline: none;
  border: none;
  font-family: sans-serif;
  font-size: 14px;
  user-select: none;
}

/* ======================
   Resize Circle
   ====================== */
.resize-circle {
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0; /* hidden by default */
}

/* Delete Circle */
.delete-circle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: transform 0.2s, opacity 0.2s;
  opacity: 1; /* always visible */
  cursor: pointer;
}

/* Specific positions for different circles */
.resize-circle:not(.font-increase-circle):not(.font-reduce-circle):not(.bold-circle) {
  top: 5px;
  right: 5px;
  cursor: nwse-resize;
}

.font-increase-circle {
  top: -50px;
  left: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.font-reduce-circle {
  top: -50px;
  left: 30px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.bold-circle {
  top: -50px;
  left: 60px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Icon inside the circle */
.resize-circle i {
  pointer-events: none;
  font-size: 14px;
}

/* Animate circles out on hover */
.draggable-element:hover .resize-circle {
  opacity: 1;
}

.draggable-element:hover .resize-circle:not(.font-increase-circle):not(.font-reduce-circle):not(.bold-circle) {
  transform: translate(4px, -4px);
}

.draggable-element:hover .font-increase-circle,
.draggable-element:hover .font-reduce-circle,
.draggable-element:hover .bold-circle {
  transform: translate(-4px, -4px);
}

/* Delete circle hover */
.draggable-element:hover .delete-circle {
  opacity: 1;
  transform: translate(-4px, 4px);
}

/* ======================
   DRAGGABLE IMAGE ELEMENT
   ====================== */
.image-element {
  position: absolute;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  overflow: visible;
  cursor: grab;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
  user-select: none;
  padding: 10px; /* padding inside for aesthetics */
}

/* Grab cursor while dragging */
.image-element:active {
  cursor: grabbing;
}

/* Image placeholder text */
.image-placeholder {
  color: #999999;
  font-size: 14px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* Uploaded images inside the element */
.image-element img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.editable-text.placeholder,
.todo-text.placeholder {
  color: #aaa; /* grey ghost text */
}

/* When user has typed something, remove placeholder class */
.editable-text:not(.placeholder),
.todo-text:not(.placeholder) {
  color: #000;
}

.editable-text:empty::before {
    content: attr(data-placeholder);
    color: #999; /* light grey ghost text */
    opacity: 0.6;
}

.editable-text:not(:empty)::before {
    content: none;
}

.todo-text.placeholder,
.image-placeholder {
    color: #999; /* light grey ghost text */
    opacity: 0.6;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.todo-text:not(.placeholder) {
    color: #222; /* normal text color */
    opacity: 1;
}


/* ====================== COLUMN ELEMENT ====================== */
.column-element {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  color: #111;
  transition:
    box-shadow 0.25s ease,
    transform 0.15s ease,
    background 0.3s ease;
  padding: 0;
  min-width: 250px;
  min-height: 300px;
  align-content: center;
}

.in-column {
  position: static !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
}

/* ====================== ROW ELEMENT ====================== */
.row-element {
  display: flex;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
  color: #111;
  transition:
    box-shadow 0.25s ease,
    transform 0.15s ease,
    background 0.3s ease;
  padding: 0;
  min-width: 400px;
  min-height: 150px;
  align-content: center;
}

.in-row {
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
}




/* Dropzone inside column */
.column-dropzone {
  flex: 1;
  backdrop-filter: blur(10px);
  background: #f9fafba7;        /* same light background as image placeholder */
  border-radius: 15px;        /* match column border-radius */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  position: relative;
  overflow: visible;
  min-height: 80px;
  transition: background 0.2s, border 0.2s;
}

.column-dropzone.drag-over {
  background: #f0f9ff;        /* subtle blue highlight when dragging */
}

/* Snapped elements inside column inherit normal styles */
.column-dropzone .draggable-element {
  margin: 0;                 /* remove spacing, stack neatly */
  position: relative;         /* needed for resizing handles */
}

.column-element:focus,
.column-dropzone:focus,
.column-title:focus {
  outline: none;
}

/* Panel container */
.panel {
    margin-left: 1%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    background: var(--white-color);
    border-radius: var(--border-radius-s);
    width: max-content;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    
}

.panel button {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-s);
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.panel button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  background: #2980b9;
}

.panel button:active {
  transform: scale(0.95);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}


.panel-grid{
background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 10%, rgba(0, 0, 0, 0.15) 100%);
padding: 15px 40px;
border: none;
outline: none;
cursor: pointer;
position: relative;
border-radius: 12px;
z-index: 0;
font-size: var(--font-size-m);
color: var(--white-color);

}

.panel-grid::after{
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 10%, var(--dark-gray-color) 100%);
    left: 0;
    top: 0;
    border-radius: 10px;
}

.panel-grid::before{
    content: "";
    background: linear-gradient(45deg, #FF0000, #FF7300, #FFFB00, #48FF00, #00FFD5, #002BFF, #FF00C8, #FF0000);
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
    opacity: 0;
}

.panel-grid:hover::before{
    opacity: 1;
}

.panel-grid:active::after{
    background: transparent;
}

.panel-grid:active{
    color: #000;
    font-weight: var(--font-weight-semibold);
}

.editable-text,
.todo-text,
.column-title {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 6px 10px;
  margin: 4px 0;
  outline: none;
}

/* Stitched Colour Palette Extension */
.color-palette-element {
  position: relative;
}

.color-palette-extension {
  position: absolute;
  top: 0;
  right: -20px;
  width: 20px;
  height: 100%;
  border: 2px dotted rgba(255, 255, 255, 0.5);
  border-left: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
  pointer-events: auto;
}

.color-palette-element:hover .color-palette-extension {
  opacity: 1;
}

.column-title {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 8px;
  margin: 0;
}



@keyframes slide-in{
    from{
        transform:translateX(100%);
        visibility: visible;
    }to{
        transform: translateX(0%);
    }
}

.todo-item {
  display: flex;
  align-items: center;
}

.todo-text {
  outline: none;
  flex: 1;
}


/* ====================== GLASS BASE ====================== */
 .draggable-element,
.column {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);

  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.45);

  color: #111;
  transition:
    box-shadow 0.25s ease,
    transform 0.15s ease,
    background 0.3s ease;
}

.draggable-element:hover,
.column:hover {
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.draggable-element:active,
.column:active {
  transform: scale(1.03);
}

#profileBtn {
    pointer-events: auto;
    position: relative;
    z-index: 9999;
}


.pageset{
    background:  linear-gradient(270deg, var(--primary-color) 100%, #1f1e21 10%);
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.sect1{
    background: var(--primary-color);
    height: 100vh;
    width: 20vw;
}

.sect2{
    background:  linear-gradient(90deg, var(--primary-color) 10%, var(--dark-gray-color) 100%);
    height: 100vh;
    width: 50vw;
    color: var(--white-color);
    border-bottom-right-radius: var(--border-radius-m);
    border-top-right-radius: var(--border-radius-m);
    position: relative;
    overflow: hidden;
}



.sect2 .h1{
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);

}

.teamsCont p{
    font-size: var(--font-size-l);
    font-weight: var(--font-weight-semibold);
    color: var(--white-color);
    margin-top: 15px;
    margin-bottom: 10px;

}

.sect2 i{
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-normal);
    color: rgb(194, 194, 194);
}

.sect3{
    background: transparent;
    height: 100vh;
    width: 30vw;
    padding: 20px;
}

/* ===============================
  SLIDER WRAPPER
=============================== */


/* Scrollbar */
.projects-slider::-webkit-scrollbar {
  height: 8px;
}

.projects-slider::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

/* ===============================
  PROJECT TILE BASE
=============================== */

.projects-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
  transform: translateX(0);
  transition: transform 0.5s ease;
}

.projects-slider-wrapper:not(.active) {
  transform: translateX(-100%);
}

.projects-slider-wrapper.active {
  z-index: 10;
}

.projects-slider {
  display: flex;
  gap: 20px;
  padding: 10px 40px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

/* Tile base */
.project-tile {
    position: relative;
    overflow: hidden;
    min-width: 180px;
    height: 180px;
    transform: scale(1);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 20px;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #6a11cb, #2575fc); /* single gradient */
}

/* Initial hidden state for new tiles */
.project-tile.newly-created {
  transform: scale(0.6);
  opacity: 0;
}


.project-tile:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Background layer (if you want overlay effects) */
.tile-bg {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
}

/* Project content above gradient */
.project-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
}

/* Project name */
.project-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Team member icons */
.team-members {
  display: flex;
  flex-direction: row;
  gap: -20px; /* Maximum overlap (20px width * 1.0 = 20px) */
  justify-content: flex-start;
  align-items: center;
  margin-left: -10px; /* Align to bottom left corner */
}

.profile-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.initial-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.my-profile-icon {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

/* ===== NEW PROJECT TILE ===== */
.new-project {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  height: 180px;
  border-radius: 20px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-project:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.new-project .plus {
  font-size: 64px;
  line-height: 1;
}

.new-project .label {
  font-size: 14px;
  opacity: 0.8;
}

/* ===== NEW PROJECT TILE ===== */
.new-project-tile {
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  height: 180px;
  border-radius: 20px;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-project-tile:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.new-project-tile .plus {
  font-size: 64px;
  line-height: 1;
}

.new-project-tile .label {
  font-size: 14px;
  opacity: 0.8;
}

/* ICONS WITH GLASSMORPHISM */
.tile-icon {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

.tile-icon:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.tile-icon.top-left { top: 12px; left: 12px; }
.tile-icon.top-right { top: 12px; right: 12px; }


.scrolling-section {
    display: none;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;   /* adjust height */
    overflow-y: auto;
    padding: 10px;
    padding-bottom: 20px;
}

.scrolling-section.active {
    display: flex;
}

/* Scrollbar styling optional */
.scrolling-section::-webkit-scrollbar {
  width: 6px;
}
.scrolling-section::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

/* List item */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: all 0.2s ease;
}

.list-item:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.02);
}

/* Icon left */
.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  margin-right: 12px;
  flex-shrink: 0;
}

.item-icon i {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

/* Text in the middle */
.item-text {
  flex-grow: 1;
}

.item-title {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.item-subtitle {
  font-weight: 400;
  font-size: 12px;
  color: #ddd;
  margin-top: 2px;
}

/* Chevron right */
.item-chevron i {
  font-size: 20px;
  color: #fff;
}

.team-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #cf0101 20%, #ff5353 100%);
    backdrop-filter: blur(6px);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 15px;
}

/*.team-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

/* Stacked profile icons on the left */
.team-profiles {
    display: flex;
    gap: -100px; /* overlap icons slightly */
}

.team-profiles .profile-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

/* Team name on the right */
.team-name {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    margin-left: 12px;
}

/* Container */
.three-block-section {
  display: flex;
  width: 100%px;   /* square container */
  height: 250px;
  gap: 15px;
}

/* Base block style — same as list items */
.block {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  font-weight: 600;
}

.block:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

/* Left block sizing */
.block-left {
  flex: 50%; /* 2/3 width */
  flex-direction: column; /* stack avatars + text vertically */
  justify-content: center;
  gap: 12px;
}

/* Right vertical stack */
.right-blocks {
  flex: 50%; /* 1/3 width */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.block-top-right,
.block-bottom-right {
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* Profiles / avatars on left */
.block-left-profiles {
  display: flex;
  gap: -10px; /* overlap slightly */
}

.profile-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

/* Team name text */
.block-left-text {
  font-size: 14px;
  font-weight: 600;
}

.sect3 p{
    font-size: var(--font-size-m);
    font-weight: var(--font-weight-normal);
    color: var(--white-color);
    margin-bottom: 15px;
}

.calendar {
  width: 350px;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 16px;
  color: #fff;
  font-family: sans-serif;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-header .month-year {
  font-weight: 600;
  font-size: 16px;
}

.calendar-header button {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-header button:hover {
  background: rgba(255,255,255,0.25);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
  color: #ddd;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-days .day {
  position: relative;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: transparent;
}

.calendar-days .day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 4px;
  background: linear-gradient(to right, #007bff, #0056b3);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.calendar-days .day:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.calendar-days .day.today {
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 700;
}

.calendar-days .day.deadline {
  position: relative;
}

.calendar-days .day.deadline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #ff0000, #cc0000);
  border-radius: 1px;
}

.calendar-days .day.deadline:hover::after {
  content: attr(data-project);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar {
  width: 220px;
  background: rgba(30,30,30,0.4);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  color: #aaa;
  font-family: sans-serif;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.2);
}

.username {
  font-weight: 600;
  color: #fff;
}

.email {
  font-size: 12px;
  color: #aaa;
}

.sidebar-spacer {
  flex-grow: 1;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
}

.menu-item span {
  flex-grow: 1;
  color: #aaa;
  padding: 4px 0;
}

.menu-item.selected span {
  color: #fff;
}

.menu-item .accent-bar {
  width: 4px;
  height: 100%;
  background: transparent;
  border-radius: 0;
  margin-right: 8px;
}

.menu-item.selected .accent-bar {
  background: #ff7f50; /* Accent color */
}

.menu-item:hover span {
  color: #fff;
}

.separator {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 8px 0;
}


/* Project tile dropdown menu */
.project-tile .tile-menu {
  position: absolute;
  top: 30px;
  right: 10px;
  width: 140px;
  background: rgba(30, 30, 30, 0.349); /* dark glass effect */
  backdrop-filter: blur(8px);
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  z-index: 2000;
}

.project-tile .tile-menu.active {
  transform: scaleY(1);
  opacity: 1;
}

.tile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  color: #ccc;
  font-size: 14px;
  transition: background 0.2s ease;
}

.tile-menu-item:hover {
  background: rgba(255,255,255,0.1);
}

.tile-menu-item.delete {
  color: #e53935;
}

/* Accent bar for column titles */
.accent-bar {
  width: 60%;
  height: 4px;
  background: linear-gradient(to right, #007bff, #0056b3);
  border-radius: 2px;
  cursor: pointer;
  margin: 0 auto 0 auto;
  transition: background 0.3s ease;
}

/* Color picker container */
.color-picker {
  position: absolute;
  top: -50px; /* Position above the accent bar */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Color circles */
.color-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-circle:hover {
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Project Progress Section */
.project-progress-section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.5s ease;
}

.project-progress-section.active {
  transform: translateX(0);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.progress-header h1 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--white-color);
}

.nav-icons {
  display: flex;
  gap: 10px;
}

.nav-icons i {
  font-size: 24px;
  color: var(--white-color);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-icons i:hover {
  color: #0077ff;
}

.progress-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex: 1;
}

.donut-chart {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(white 0% 45%, rgba(255,255,255,0.2) 45% 100%);
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.inner-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-l);
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.2);
}

.tasks-remaining {
  flex: 1;
}

.tasks-remaining h2 {
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-semibold);
  color: var(--white-color);
  margin-bottom: 20px;
}

.tasks-remaining .team-members {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-dropdown {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  transition: background 0.2s ease;
}

.member-dropdown:hover {
  background: rgba(255,255,255,0.2);
}

.member-dropdown summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: var(--font-weight-medium);
  color: var(--white-color);
  list-style: none;
  outline: none;
}

.member-dropdown summary::-webkit-details-marker {
  display: none;
}

.member-dropdown summary::after {
  content: '▼';
  float: right;
  color: var(--white-color);
  transition: transform 0.2s ease;
}

.member-dropdown[open] summary::after {
  transform: rotate(180deg);
}

.member-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0,0,0,0.1);
}

.member-dropdown li {
  padding: 8px 16px;
  color: var(--white-color);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.member-dropdown li:first-child {
  border-top: none;
}

/* Team Selection Pop-up */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  color: #fff;
}

.popup-content h2 {
  margin-bottom: 20px;
  font-size: var(--font-size-xl);
  color: #0077ff;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.team-member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.team-member-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.team-member-item input[type="checkbox"] {
  accent-color: #0077ff;
  transform: scale(1.2);
}

.team-member-item label {
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  flex: 1;
  text-align: left;
}

.done-btn {
  padding: 12px 30px;
  background: #0077ff;
  color: var(--white-color);
  border: none;
  border-radius: var(--border-radius-m);
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.done-btn:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

/* Deadline Picker Overlay */
.deadline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.deadline-overlay.active {
  display: flex;
}

.deadline-content {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 30px;
  width: 250px;
  text-align: center;
  color: #fff;
}

.deadline-content h2 {
  margin-bottom: 20px;
  font-size: var(--font-size-xl);
  color: #0077ff;
}

.deadline-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.deadline-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

.deadline-options input[type="checkbox"] {
  accent-color: #0077ff;
  transform: scale(1.2);
}

/* Scrolling Date Picker */
.date-picker {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 20px;
}

.date-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 200px;
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.date-column:active {
  cursor: grabbing;
}

.date-column::before,
.date-column::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
  z-index: 1;
  pointer-events: none;
}

.date-column::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
}

.date-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  cursor: grab;
  overflow: hidden;
}

.date-scroll:active {
  cursor: grabbing;
}

.date-item {
    padding: 10px 15px;
    font-size: 24px;
    font-weight: 500;
    color: rgba(0,0,0,0.7);
    opacity: 0.4;
    transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    user-select: none;
    width: 50px;
    text-align: center;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.date-item.selected {
  color: #0077ff;
  font-weight: 700;
  transform: scale(1.1);
}

.date-item:hover {
  color: #fff;
}

.date-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.selected-date-display {
  margin-top: 20px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white-color);
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  backdrop-filter: blur(6px);
}

/* Date Picker Styles */
.picker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.wheel {
  width: 80px;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--font-size-l);
  color: #f9fafb;
  font-weight: var(--font-weight-semibold);
}

.wheel .date-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  cursor: grab;
}

.wheel .date-item {
  padding: 10px;
  font-size: var(--font-size-l);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0.3;
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  user-select: none;
  width: 100%;
  text-align: center;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-l);
}

.wheel .date-item.selected {
  color: #0077ff;
  font-size: var(--font-size-l);
  font-weight: 700;
  transform: scale(1.1);
  opacity: 1;
  scale: 1.2;
  
  padding-top: 60px;
  padding-bottom: 60px;
}

.wheel .date-item:hover {
  color: #fff;
  opacity: 0.8;
}

.selection-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 40px;
  transform: translateY(-50%);
  /* background: rgba(255, 255, 255, 0.2); */
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
  font-size: var(--font-size-l);
}

/* Project Tile Menu */
.tile-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tile-icon:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tile-menu {
  position: absolute;
  top: 50px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 120px;
  display: none;
  z-index: 10;
}

.tile-menu.show {
  display: block;
}

.tile-menu-item {
  padding: 8px 15px;
  color: var(--white-color);
  cursor: pointer;
  transition: background 0.3s ease;
}

.tile-menu-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.tile-menu-item.delete {
  color: #ff6b6b;
}

.tile-menu-item.delete:hover {
  background: rgba(255, 0, 0, 0.2);
}


.sect2 p{
  margin-top: 30px;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}


.sect2 i{
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-normal);
}

/* Responsive Design */

/* Tablet Styles (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --font-size-xl: 1.8rem;
    --font-size-xxl: 2rem;
  }

  .section-content {
    padding: 0 15px;
  }

  .navbar .nav-menu {
    display: none; /* Hide menu, assume hamburger toggle */
  }

  .navbar #menu-open-button {
    display: block;
  }

  .navbar .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 1000;
    gap: 20px;
  }

  .navbar .nav-menu.active #menu-close-button {
    display: block;
    align-self: flex-end;
  }

  .navbar .nav-logo .logo-text {
    font-size: var(--font-size-m);
  }

  .home-section .section-content,
  .aboutus-section .section-content {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .home-section .section-details,
  .aboutus-section .section-details {
    margin-left: 0;
    margin-bottom: 30px;
  }

  .home-section .image-wrapper,
  .aboutus-section .image-wrapper {
    max-width: 300px;
    margin-right: 0;
  }

  .home-section .section-details .buttons {
    justify-content: center;
  }

  .aspects-section .aspects-list {
    gap: 50px;
  }

  .aspects-section .aspects-list .aspects-item {
    width: calc(50% - 25px);
  }

  .contact-section .section-content {
    flex-direction: column;
    gap: 30px;
  }

  .contact-section .contact-form,
  .contact-section .contact-info-list {
    max-width: 100%;
  }

  .footer-section .section-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .about-section .section-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-section .about-details {
    max-width: 100%;
  }

  .the-team .slider-wrapper {
    margin: 0 30px;
  }

  .container {
    width: 90%;
    height: 450px;
  }

  .content {
    width: 60%;
    padding: 60px;
  }

  .logreg-box {
    width: calc(100% - 60%);
  }

  .pageset {
    flex-direction: column;
  }

  .sect1 {
    width: 100vw;
    height: 20vh;
  }

  .sect2 {
    width: 100vw;
    height: 60vh;
  }

  .sect3 {
    width: 100vw;
    height: 20vh;
  }

  .control-panel {
    width: 250px;
  }

  .floating-pill-vertical {
    right: 16px;
  }

  .panel {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(6, 1fr);
  }

  .calendar {
    width: 300px;
  }

  .sidebar {
    width: 200px;
  }

  .three-block-section {
    height: 200px;
  }

  .block-left {
    flex: 100%;
  }

  .right-blocks {
    flex: 100%;
    flex-direction: row;
    gap: 10px;
  }

  .block-top-right,
  .block-bottom-right {
    flex: 1;
  }

  .progress-content {
    flex-direction: column;
    gap: 20px;
  }

  .donut-chart {
    flex: none;
  }

  .tasks-remaining {
    flex: none;
  }
}

/* Mobile Styles (max-width: 1024px) */
@media (max-width: 1024px) {
  /* Root variable adjustments for mobile */
  :root {
    --font-size-xl: 1.5rem;
    --font-size-xxl: 1.8rem;
    --font-size-l: 1.2rem;
  }

  /* General section adjustments */
  .section-content {
    padding: 0 10px;
  }

  /* Navbar adjustments */
  .navbar .nav-logo .logo-nav {
    max-width: 5%;
  }

  .navbar .nav-logo .logo-text {
    font-size: var(--font-size-s);
  }

  /* Home and About sections */
  .home-section .section-details .title,
  .aboutus-section .section-details .title {
    font-size: var(--font-size-xl);
  }

  .home-section .section-details .subtitle,
  .aboutus-section .section-details .subtitle {
    font-size: var(--font-size-m);
    max-width: 100%;
  }

  .home-section .section-details .description,
  .aboutus-section .section-details .description {
    font-size: var(--font-size-s);
  }

  .home-section .section-details .buttons {
    flex-direction: column;
    gap: 15px;
  }

  .home-section .section-details .button,
  .home-section .section-details .sign-up {
    padding: 8px 20px;
    font-size: var(--font-size-s);
  }

  /* Aspects section */
  .aspects-section .aspects-list {
    flex-direction: column;
    gap: 30px;
  }

  .aspects-section .aspects-list .aspects-item {
    width: 100%;
  }

  /* Contact section */
  .contact-section .contact-info-list .contact-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .contact-section .contact-form .form-input {
    height: 45px;
    padding: 15px;
  }

  .contact-section .contact-form textarea {
    height: 80px;
    padding: 15px;
  }

  /* Footer */
  .footer-section .social-link-list {
    justify-content: center;
  }

  /* About section */
  .about-section .about-image-wrapper .about-image {
    width: 300px;
    height: 300px;
  }

  /* Team section */
  .the-team .team-member {
    padding: 25px;
  }

  .the-team .team-member .team-member-image,
  .the-team .team-member .team-initial-icon {
    width: 150px;
    height: 150px;
  }

  /* Login container */
  .container {
    width: 95%;
    height: 400px;
  }

  .content {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
  }

  .logreg-box {
    width: 100%;
    position: static;
    background: transparent;
  }

  .form-box {
    width: 100%;
  }

  /* Page layout */
  .pageset {
    flex-direction: column;
  }

  .sect1 {
    height: 15vh;
  }

  .sect2 {
    height: 70vh;
  }

  .sect3 {
    height: 15vh;
  }

  /* Hide desktop side panel and collapse tab */
  .control-panel {
    display: none;
  }

  .panel-collapse-tab {
    display: none;
  }

  /* Mobile Taskbar - Vertical icon bar on left edge for spawning elements */
  .mobile-taskbar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    border-radius: 0 var(--border-radius-s) var(--border-radius-s) 0;
    padding: 8px;
    gap: 8px;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-taskbar[data-theme="dark"] {
    background: var(--glass-bg);
    border-right: 2px solid #0077ff;
  }

  .mobile-taskbar[data-theme="light"] {
    background: var(--panel-bg);
    border-right: 1px solid var(--border-color);
  }

  .mobile-taskbar .task-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-s);
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
  }

  .mobile-taskbar[data-theme="dark"] .task-icon {
    background: rgba(255, 255, 255, 0.15);
  }

  .mobile-taskbar[data-theme="dark"] .task-icon:hover {
    background: rgba(255, 255, 255, 0.25);
  }

  .mobile-taskbar[data-theme="light"] .task-icon {
    background: transparent;
    color: #1f2937;
  }

  .mobile-taskbar[data-theme="light"] .task-icon:hover {
    background: rgba(0,0,0,0.08);
  }

  .mobile-taskbar .task-icon:hover {
    transform: scale(1.05);
  }

  .mobile-taskbar .task-icon:active {
    transform: scale(0.95);
  }

  /* Floating pill adjustments */
  .floating-pill-vertical {
    right: 10px;
  }

  /* Panel adjustments */
  .panel {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(6, 1fr);
    width: 90%;
  }

  /* Calendar */
  .calendar {
    width: 280px;
  }

  /* Sidebar */
  .sidebar {
    width: 180px;
  }

  /* Three block section */
  .three-block-section {
    height: 180px;
  }

  .block-left-profiles .profile-icon {
    width: 30px;
    height: 30px;
  }

  /* Progress content */
  .progress-content {
    flex-direction: column;
    gap: 15px;
  }

  /* Donut chart */
  .donut {
    width: 120px;
    height: 120px;
  }

  .inner-circle {
    width: 80px;
    height: 80px;
    font-size: var(--font-size-m);
  }

  /* Popup content */
  .popup-content {
    padding: 20px;
    max-width: 90%;
  }

  /* Deadline content */
  .deadline-content {
    width: 90%;
  }
}

/* Project Files Modal */
.project-files-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-files-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(209, 213, 219, 0.85);
}





.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 98%;
  max-width: 1400px;
  max-height: 95vh;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: transform 0.25s ease;
  pointer-events: auto;
  z-index: 10001;
}





/* ===== HEADER ===== */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: transparent;
    border-bottom: none;
}

.header-taskbar button {
    margin-left: 8px;
}

/* ===== BODY LAYOUT ===== */
.modal-body.modern-layout {
    display: flex;
    padding: 32px;
    height: 100%;
}


/* ===== LEFT ===== */
.left-column {
    background: transparent;
    padding: 0;
}

.left-column h4 {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: #9aa0c3;
    margin-bottom: 12px;
}

.folder-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-weight: 500;
    color: #3c3f58;
}

.folder-list li.active {
    background: #eef1ff;
    box-shadow: inset 4px 0 0 #6c63ff;
}

.folder-list li {
    cursor: pointer;
}

.file-item.selected {
    border: 2px solid #007bff;
    border-radius: 4px;
}


/* ===== CENTER ===== */
.center-column {
    overflow: visible;
}


.center-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #2e2f4f;
}

.horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}


.media-thumb {
    min-width: 140px;
    height: 80px;
    opacity: 0.9;
    border-radius: 14px;
    background: #e9ecff;
}

.project-card {
    min-width: 180px;
    height: 110px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6c63ff, #8f8bff);
}

.projects-row {
    gap: 20px;
}
.section {
    margin-bottom: 36px;
}

.section h3 {
    margin-bottom: 14px;
}


.media-grids {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.doc-card,
.video-card {
    height: 110px;
    border-radius: 16px;
    padding: 12px;
}



.open-media-btn {
    margin-top: 24px;
    padding: 12px;
    border-radius: 10px;
    background: #6c63ff;
    color: white;
    border: none;
}

/* ===== RIGHT ===== */
.right-column {
    background: white;
    border-radius: 18px;
    padding: 20px;
}

.queue-item,
.todo-item {
    padding: 10px 12px;
    font-size: 14px;
}


.approve {
    background: #4caf50;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
}

/* ===== FILE VIEW STYLES ===== */
.file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  max-width: 150px;
  position: relative;
}

.file-actions {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.file-item:hover .file-actions {
  opacity: 1;
}

.favorite-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.favorite-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.favorite-btn.favorited {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.favorite-btn.favorited i::before {
  content: '\f004'; /* Filled heart icon */
}

.options-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #6b7280;
}

.options-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.file-options-menu {
  position: absolute;
  top: 36px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  max-width: 150px;
  z-index: 1000;
  overflow: hidden;
}

.menu-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  color: #374151;
  font-size: 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.menu-option:hover {
  background: rgba(0, 0, 0, 0.05);
}

.menu-option i {
  font-size: 16px;
  color: #6b7280;
}

.menu-option.delete {
  color: #ef4444;
}

.menu-option.delete i {
  color: #ef4444;
}

.file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.file-preview {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.file-preview img,
.file-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-icon {
    font-size: 32px;
}

.file-name {
    font-size: 12px;
    font-weight: 500;
    color: #1f2937;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
    overflow: visible;
}

.approve-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 10px;
}

/* =============================================================================
   PROJECT FILES MODAL - FORCE LIGHT THEME (Matches Phase1.html exactly)
   ============================================================================= */

/* Force light theme on modal content regardless of parent theme */
.project-files-modal .modal-content,
.project-files-modal .modal-header,
.project-files-modal .modal-body,
.project-files-modal .file-hierarchy-sidebar,
.project-files-modal .file-section,
.project-files-modal .folder-item,
.project-files-modal .file-item,
.project-files-modal .new-item-dropdown-menu {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #e5e7eb !important;
}

/* Keep modal overlay grey as intended */
.project-files-modal .modal-overlay {
    background: rgba(209, 213, 219, 0.85) !important;
}





/* Force light text colors in modal */
.project-files-modal .modal-header h2,
.project-files-modal .hierarchy-header,
.project-files-modal .hierarchy-item,
.project-files-modal .section-header,
.project-files-modal .file-name,
.project-files-modal .folder-item .file-name,
.project-files-modal .dropdown-option {
    color: #1f2937 !important;
}

/* Force light backgrounds on hover states */
.project-files-modal .hierarchy-item:hover,
.project-files-modal .file-item:hover,
.project-files-modal .folder-item:hover,
.project-files-modal .dropdown-option:hover {
    background: #f3f4f6 !important;
}

/* Force active state to use light theme colors */
.project-files-modal .hierarchy-item.active {
    background: linear-gradient(135deg, rgba(0, 119, 255, 0.3), rgba(0, 119, 255, 0.1)) !important;
    color: #0077ff !important;
    border-left: 4px solid #0077ff !important;
}

/* Ensure icons in modal use dark colors */
.project-files-modal .hierarchy-item i,
.project-files-modal .section-header i,
.project-files-modal .hierarchy-header i {
    color: #0077ff !important;
}

/* Section-specific icon colors in light theme */
.project-files-modal .file-section[data-section="images"] .section-header i {
    color: #10b981 !important;
}

.project-files-modal .file-section[data-section="videos"] .section-header i {
    color: #f59e0b !important;
}

.project-files-modal .file-section[data-section="palettes"] .section-header i {
    color: #8b5cf6 !important;
}

.project-files-modal .file-section[data-section="documents"] .section-header i {
    color: #ef4444 !important;
}

/* Ensure close button is visible */
.project-files-modal .close-btn {
    color: #6b7280 !important;
}

.project-files-modal .close-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Override any dark mode variables that might affect the modal */
.project-files-modal * {
    --glass-bg: rgba(255, 255, 255, 0.95) !important;
    --panel-bg: #ffffff !important;
    --text-color: #1f2937 !important;
    --border-color: #e5e7eb !important;
}

/* Maximum specificity override for modal overlay - force light grey */
html body .project-files-modal .modal-overlay,
body .project-files-modal .modal-overlay,
.project-files-modal .modal-overlay,
.modal-overlay {
    background: rgba(220, 220, 220, 0.9) !important;
}

/* Ensure modal content stays light */
html body .project-files-modal,
html body .project-files-modal .modal-content,
.project-files-modal,
.project-files-modal .modal-content {
    background: #ffffff !important;
    color: #1f2937 !important;
}

/* FINAL OVERRIDE - Force light grey background on modal overlay */
html body div.project-files-modal div.modal-overlay,
html body div.project-files-modal.active div.modal-overlay,
.project-files-modal.active .modal-overlay,
.project-files-modal .modal-overlay {
    background-color: rgba(220, 220, 220, 0.9) !important;
    background: rgba(220, 220, 220, 0.9) !important;
}

/* ULTRA-SPECIFIC OVERRIDE - Force light theme on all modal elements */
html[data-theme="dark"] body .project-files-modal,
html[data-theme="dark"] body .project-files-modal .modal-overlay,
html[data-theme="dark"] body .project-files-modal .modal-content,
html[data-theme="dark"] body .project-files-modal .modal-header,
html[data-theme="dark"] body .project-files-modal .modal-body,
html[data-theme="dark"] body .project-files-modal .left-column,
html[data-theme="dark"] body .project-files-modal .center-column,
html[data-theme="dark"] body .project-files-modal .file-grid,
html[data-theme="dark"] body .project-files-modal .file-item,
html[data-theme="dark"] body .project-files-modal .folder-list li,
html[data-theme="dark"] body .project-files-modal h2,
html[data-theme="dark"] body .project-files-modal h3,
html[data-theme="dark"] body .project-files-modal h4,
html[data-theme="dark"] body .project-files-modal p,
html[data-theme="dark"] body .project-files-modal span,
html[data-theme="dark"] body .project-files-modal div {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border-color: #e5e7eb !important;
}

/* Force modal overlay to light grey even in dark mode */
html[data-theme="dark"] body .project-files-modal .modal-overlay {
    background-color: rgba(220, 220, 220, 0.9) !important;
    background: rgba(220, 220, 220, 0.9) !important;
}

/* Force specific text elements to dark color */
html[data-theme="dark"] body .project-files-modal .modal-header h2,
html[data-theme="dark"] body .project-files-modal .folder-list li,
html[data-theme="dark"] body .project-files-modal .file-name,
html[data-theme="dark"] body .project-files-modal h3,
html[data-theme="dark"] body .project-files-modal h4 {
    color: #1f2937 !important;
}

/* Force active folder item to have light background */
html[data-theme="dark"] body .project-files-modal .folder-list li.active {
    background-color: #eef1ff !important;
    color: #6c63ff !important;
    box-shadow: inset 4px 0 0 #6c63ff !important;
}

/* Force file items to have light background */
html[data-theme="dark"] body .project-files-modal .file-item {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* Force file item hover to light grey */
html[data-theme="dark"] body .project-files-modal .file-item:hover {
    background-color: #f9fafb !important;
}

/* Force close button to be visible */
html[data-theme="dark"] body .project-files-modal .close-btn {
    color: #6b7280 !important;
    background: transparent !important;
}

html[data-theme="dark"] body .project-files-modal .close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Force taskbar buttons to light theme */
html[data-theme="dark"] body .project-files-modal .taskbar-btn {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
}

html[data-theme="dark"] body .project-files-modal .taskbar-btn:hover {
    background-color: #e5e7eb !important;
}

/* Force header taskbar to light background */
html[data-theme="dark"] body .project-files-modal .header-taskbar {
    background-color: transparent !important;
}

/* Force file actions buttons to light theme */
html[data-theme="dark"] body .project-files-modal .options-btn {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #6b7280 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Force file options menu to light theme */
html[data-theme="dark"] body .project-files-modal .file-options-menu {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme="dark"] body .project-files-modal .menu-option {
    color: #374151 !important;
    background-color: transparent !important;
}

html[data-theme="dark"] body .project-files-modal .menu-option:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Force file preview background to light */
html[data-theme="dark"] body .project-files-modal .file-preview {
    background-color: #f9fafb !important;
}

/* Force favorite and options buttons to light theme */
html[data-theme="dark"] body .project-files-modal .favorite-btn,
html[data-theme="dark"] body .project-files-modal .options-btn {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #6b7280 !important;
}

/* ABSOLUTE FINAL OVERRIDE - Use :where to reduce specificity but force inheritance */
html[data-theme="dark"] .project-files-modal,
html[data-theme="dark"] .project-files-modal * {
    --bg-color: #f4f4f4 !important;
    --panel-bg: #ffffff !important;
    --text-color: #1f2937 !important;
    --border-color: #e5e7eb !important;
    --glass-bg: rgba(255, 255, 255, 0.95) !important;
    --glass-border: rgba(0, 0, 0, 0.1) !important;
}

/* Force all children to inherit light colors */
html[data-theme="dark"] .project-files-modal * {
    color: #1f2937 !important;
    background-color: transparent !important;
}

/* Force specific elements to white background */
html[data-theme="dark"] .project-files-modal .modal-content,
html[data-theme="dark"] .project-files-modal .modal-header,
html[data-theme="dark"] .project-files-modal .modal-body,
html[data-theme="dark"] .project-files-modal .left-column,
html[data-theme="dark"] .project-files-modal .center-column,
html[data-theme="dark"] .project-files-modal .file-grid,
html[data-theme="dark"] .project-files-modal .file-item,
html[data-theme="dark"] .project-files-modal .folder-list,
html[data-theme="dark"] .project-files-modal .folder-list li {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

/* Force overlay to light grey */
html[data-theme="dark"] .project-files-modal .modal-overlay {
    background: rgba(220, 220, 220, 0.9) !important;
    background-color: rgba(220, 220, 220, 0.9) !important;
}

/* Force text elements to dark */
html[data-theme="dark"] .project-files-modal h2,
html[data-theme="dark"] .project-files-modal h3,
html[data-theme="dark"] .project-files-modal h4,
html[data-theme="dark"] .project-files-modal p,
html[data-theme="dark"] .project-files-modal span,
html[data-theme="dark"] .project-files-modal div,
html[data-theme="dark"] .project-files-modal li {
    color: #1f2937 !important;
}

/* Force buttons to light theme */
html[data-theme="dark"] .project-files-modal button {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
}

/* Force close button */
html[data-theme="dark"] .project-files-modal .close-btn {
    background: transparent !important;
    color: #6b7280 !important;
}

/* Force active folder item */
html[data-theme="dark"] .project-files-modal .folder-list li.active {
    background-color: #eef1ff !important;
    color: #6c63ff !important;
}

/* Force file item selected state */
html[data-theme="dark"] .project-files-modal .file-item.selected {
    border: 2px solid #007bff !important;
    background-color: #ffffff !important;
}

/* Force file preview background */
html[data-theme="dark"] .project-files-modal .file-preview {
    background-color: #f9fafb !important;
}

/* Force options menu */
html[data-theme="dark"] .project-files-modal .file-options-menu {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Force menu options */
html[data-theme="dark"] .project-files-modal .menu-option {
    color: #374151 !important;
    background-color: transparent !important;
}

html[data-theme="dark"] .project-files-modal .menu-option:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Force file actions buttons */
html[data-theme="dark"] .project-files-modal .file-actions button {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #6b7280 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Force header taskbar */
html[data-theme="dark"] .project-files-modal .header-taskbar {
    background-color: transparent !important;
}

html[data-theme="dark"] .project-files-modal .header-taskbar button {
    background-color: #f3f4f6 !important;
    color: #374151 !important;
}

/* Force all borders to light */
html[data-theme="dark"] .project-files-modal .modal-content,
html[data-theme="dark"] .project-files-modal .modal-header,
html[data-theme="dark"] .project-files-modal .file-item,
html[data-theme="dark"] .project-files-modal .folder-list li {
    border-color: #e5e7eb !important;
}
