/* --- Global Resets & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root { /* Or maybe apply to .app-mockup if styles shouldn't be global */
    --kanban-upcoming-bg: #e6f7ff;    /* Light Blue - Default */
    --kanban-inprogress-bg: #fffbe6; /* Light Yellow - Default */
    --kanban-done-bg: #f6ffed;       /* Light Green - Default */
    --kanban-column-text: #333;      /* Default text color */
  }

body {
    font-family: 'Inter', sans-serif; /* Or the specific font used */
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa; /* Light background for contrast */
}

a {
    text-decoration: none;
    color: inherit; /* Inherit color by default */
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px; /* Rounded corners */
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.btn-login {
    border: 1.5px solid #fff;
    color: #fff;
}

.btn-login:hover {
    background-color: #fff;
    color: #007bff; /* Adjust hover color */
}

.btn-primary {
    background-color: #fff;
    color: #333; /* Or a dark color matching the theme */
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #eee; /* Slightly darker on hover */
}

/* --- Header --- */
.site-header {
    position: fixed;      /* Keep fixed at the top */
    top: 0;               /* Align to the top */
    left: 0;              /* Align to the left */
    width: 100%;          /* Span full viewport width */
    padding: 15px 0;
    z-index: 1000;        /* Ensure it stays on top of other content */
    background: #747778;
    background: linear-gradient(180deg, rgba(116, 119, 120, 0.8) 0%, rgba(124, 124, 124, 0.4) 50%, rgba(255, 255, 255, 0.01) 100%);
    transition: background-color 0.3s ease; /* Smooth transition if background changes on scroll (JS needed) */
}


/* Ensure container within header still works */
.header-container {
    max-width: 1200px; /* Or your chosen container width */
    margin: 0 auto;
    padding: 0 20px; /* Keep side padding consistent */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.img-bg {
    /* Set rules to fill background */
    min-height: 100%;
    min-width: 1024px;
      
    /* Set up proportionate scaling */
    width: 100%;
    height: auto;
      
    /* Set up positioning */
    position: fixed;
    top: 0;
    left: 0;

    z-index: -1;
  }
  
  @media screen and (max-width: 1024px) { /* Specific to this particular image */
    img.bg {
      left: 50%;
      margin-left: -512px;   /* 50% */
    }
  }

.main-nav ul {
    display: flex;
    gap: 30px; /* Spacing between links */
}

.main-nav a {
    color: #fff;
    font-weight: 500;
    padding: 5px 0;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    opacity: 0.8;
}


/* --- Hero Section --- */
.hero {
    /* ** Replace this gradient/color with your background-image ** */
    /*background-image: url('../images/your-sky-image.jpg'); /* Link to your actual image */
    background-size: cover;
    background-position: top; /* Position image at the bottom */
    color: #fff;
    padding: 200px 0 250px; /* Adjust top/bottom padding for content position */
    text-align: center;
    position: relative; /* Needed for absolute header and overlapping mockup */
    min-height: 100vh; /* Ensure it takes significant height */
    height: auto;
}

.hero-content h1 {
    font-size: 3.5rem; /* Large headline */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px; /* Limit width of subheadline */
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* --- App Mockup --- */
.app-mockup {
    position: relative; /* Allow positioning relative to the normal flow */
    margin-top: -180px; /* Negative margin to overlap the hero */
    z-index: 5; /* Ensure it's above hero but below header */
    padding-bottom: 50px; /* Space at the bottom */
}

.mockup-container {
    max-width: 90%; /* Control the width of the mockup */
    border: solid 0.2rem;
    margin: 0 auto;
    background-color: #f0f2f5; /* Light grey background for the app */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    min-height: 600px; /* Give it some default height */
    overflow: hidden; /* Clip content if needed */
}

/* --- Mockup Sidebar --- */
.mockup-sidebar {
    width: 200px; /* Fixed width for sidebar */
    background-color: #ffffff; /* White background */
    padding: 30px 15px;
    border-right: 1px solid #e0e0e0; /* Subtle separator */
}

.mockup-sidebar h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 25px;
    padding-left: 10px;
    color: #000;
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    color: #000;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.sidebar-nav li a i {
    width: 18px; /* Align icons */
    text-align: center;
    color: #888;
}

.sidebar-nav li.active a,
.sidebar-nav li a:hover {
    background-color: #333; /* Dark background for active/hover */
    color: #fff;
}
.sidebar-nav li.active a i,
.sidebar-nav li a:hover i {
    color: #fff;
}


/* --- Mockup Main Content --- */
.mockup-main {
    flex: 1; /* Take remaining space */
    padding: 30px;
    background-color: #f7f8fa; /* Slightly different background */
    min-width: 500px;

}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.project-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.project-title-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ccc; /* Placeholder color */
    border: 2px solid #f7f8fa; /* Overlap effect */
    margin-left: -10px; /* Overlap effect */
    display: inline-block; /* Needed for margin overlap */
    background-size: cover;
    background-position: center;
    /* Add background-image for each avatar */
}
.avatar:first-child {
    margin-left: 0;
}
.avatar.small {
    width: 24px;
    height: 24px;
    border-width: 1px;
    margin-left: -6px;
}

.avatar-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e4e8;
    color: #555;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: -10px;
    border: 2px solid #f7f8fa;
    z-index: 1; /* Ensure it's above overlapped avatars */
}


.project-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 5px 15px;
}
.search-bar i {
    color: #aaa;
    margin-right: 8px;
}
.search-bar input {
    border: none;
    outline: none;
    background: none;
    font-size: 0.9rem;
}
.search-bar input::placeholder {
    color: #aaa;
}

.btn-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #333;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    line-height: 1; /* Center the plus sign */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Kanban Board --- */
.kanban-board {
    display: flex;
    gap: 20px; /* Space between columns */
}

.kanban-column {
    flex: 1; /* Equal width columns */
    min-width: 280px; /* Minimum width before wrapping/scrolling */
    color: var(--kanban-column-text);
    transition: background-color 0.3s ease;
    border-radius: 10px;
    padding: 15px;
}

#columnUpcoming {
    background-color: var(--kanban-upcoming-bg);
  }
#columnInProgress {
    background-color: var(--kanban-inprogress-bg);
  }
#columnDone {
    background-color: var(--kanban-done-bg);
  }
  
.kanban-column .column-header h4 {
    /* Maybe set color based on parent column or keep default */
}
.kanban-column .column-header span {
    /* Style count badge */
} 

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 5px; /* Slight padding */
}

.column-header h4 {
    font-size: 1rem;
    font-weight: 600;
}

.column-header span {
    font-size: 0.85rem;
    color: #777;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between tasks */
}

.task-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    position: relative;
    transition: box-shadow 0.2s ease-in-out;
}

.task-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Example hover effect */
}

.delete-card-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1); /* Subtle background */
    border: none;
    color: #666;
    font-size: 12px;
    line-height: 18px; /* Center the 'x' */
    text-align: center;
    cursor: pointer;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
    z-index: 5; /* Ensure it's above card content */
}

.task-card:hover .delete-card-btn {
    opacity: 1; /* Show on card hover */
}

.delete-card-btn:hover {
    background-color: #e63946; /* Red background on button hover */
    color: white;
}


.task-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* --- Grey Out Done Task Cards --- */
.kanban-column.column-done .task-card {
    opacity: 0.75;
    background-color: #f8f9fa; /* Lighter background */
    border-color: #e9ecef;
}

.kanban-column.column-done .task-card h5 {
    /* Optional: line-through or slightly greyed text */
    /* text-decoration: line-through; */
    color: #6c757d;
}

/* Optional: Adjust priority/meta colors if needed for contrast */
.kanban-column.column-done .task-card .priority,
.kanban-column.column-done .task-card .task-meta {
    opacity: 0.8;
}

.priority {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666; /* Default text color, overridden below */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 3px; /* Gap between bars */
}

.priority span { /* The bars */
    display: inline-block;
    width: 8px; /* Width of each bar */
    height: 14px; /* Height of bars */
    border-radius: 2px;
    background-color: #dcdcdc; /* Default bar color */
    margin-right: 1px; /* Small gap between bars */
}
.priority span:last-of-type {
    margin-right: 6px; /* Space before text label */
}

/* Priority Colors */
.priority-low span:nth-child(1) { background-color: #70c5a1; }
.priority-low { color: #70c5a1; }

.priority-medium span:nth-child(1),
.priority-medium span:nth-child(2) { background-color: #f1b15b; }
.priority-medium { color: #f1b15b; }

.priority-high span { background-color: #e96c6c; } /* All bars red */
.priority-high { color: #e96c6c; }


.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.comment-count {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}
.comment-count i {
    font-size: 0.9rem;
}

.assignee-avatars {
    display: flex;
}
/* Small avatar styles already defined */

/* --- Drag and Drop Styles --- */

/* Style for the card being dragged */
.task-card.dragging {
    opacity: 0.5; /* Make it semi-transparent */
    /* transform: rotate(3deg); Optional: Slight tilt */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow */
}

/* Style for the column being dragged over */
.kanban-column.drag-over .task-list { /* Target the list inside */
    background-color: #e6f7ff; /* Light blue highlight */
    border: 2px dashed #91d5ff;
    border-radius: 8px; /* Match card radius */
    min-height: 50px; /* Ensure drop zone is visible even if column empty */
}

/* --- Button Styles Additions --- */
.btn-danger {
    background-color: #dc3545; /* Red */
    color: white;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333; /* Darker red */
    color: white;
}

/* Adjust spacing in modal actions if needed */
.modal-content .form-actions {
    justify-content: flex-end; /* Keep aligning right */
    gap: 10px; /* Ensure space between buttons */
}

/* --- Assignee Autocomplete Styles --- */
.assignee-input-wrapper {
    position: relative; /* Needed for absolute positioning of suggestions */
}

.suggestions-list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%; /* Position below the input */
    max-height: 150px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 10; /* Ensure it appears above elements below */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.suggestions-list div { /* Style for each suggestion item */
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.suggestions-list div:last-child {
    border-bottom: none;
}
.suggestions-list div:hover {
    background-color: #f0f0f0;
}
.suggestions-list div.no-results {
    color: #888;
    cursor: default;
}

.selected-assignees {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.assignee-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e0e0e0;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 0.85rem;
    color: #333;
}

.assignee-tag .remove-assignee {
    margin-left: 6px;
    font-size: 1.1rem;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}
.assignee-tag .remove-assignee:hover {
    color: #333;
}

/* --- Sidebar Teams Section Styles --- */
.teams-section {
    margin-top: 20px;
}

.teams-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 10px;
    color: #555;
}

.sidebar-team-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-team-list li {
    padding: 8px 15px;
    border-radius: 6px;
    margin-bottom: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
    color: #444;
     display: flex; /* Align icon and text */
     align-items: center;
     gap: 8px;
}
 .sidebar-team-list li i { /* Style for potential team icon */
     color: #888;
 }


.sidebar-team-list li:hover,
.sidebar-team-list li.active-team { /* Style for selected team later */
    background-color: #eee;
}
 .sidebar-team-list li.loading {
     color: #888;
     font-style: italic;
     cursor: default;
 }
 .sidebar-team-list li.empty {
      color: #888;
      font-style: italic;
      cursor: default;
 }


.btn-sidebar-action {
     display: block; /* Make button full width */
     width: calc(100% - 20px); /* Adjust width considering padding */
     margin: 15px 10px 0 10px;
     text-align: left; /* Align text left */
     padding: 8px 12px;
     border-radius: 6px;
     font-weight: 500;
     border: 1px solid #ccc; /* Example style */
     background-color: #f8f9fa;
     color: #333;
}
.btn-sidebar-action:hover {
     background-color: #e9ecef;
}
 .btn-sidebar-action i {
     margin-right: 8px;
 }

.setting-message {
     color: red; 
     font-size: 0.9em; 
     margin-top: 5px; 
     height: 1.2em; 
}

.task-meta .due-date { /* Shared with modal maybe? */
    font-size: 0.8rem; color: #666; margin-left: 8px; display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid #ddd; border-radius: 10px; padding: 1px 6px; background-color: #fdfdfd;
}
.task-meta .due-date i { font-size: 0.85rem; }
.task-meta .due-date.overdue {
     color: #dc3545; border-color: #f5c6cb; background-color: #f8d7da; font-weight: 500;
}

/* --- Mobile Styles (Add this block to the END of style.css) --- */
@media (max-width: 768px) {
    /* All mobile-specific overrides go inside here */

    /* Example: Make body font slightly smaller */
    body {
        font-size: 15px;
    }

    .container {
        padding: 0 15px; /* Reduce side padding */
    }

    /* ... other mobile styles below ... */
}

/* --- Mobile Menu Base Styles --- */
.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #525252; /* Or your header text color */
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1001; /* Above header content but below open menu */
}

.mobile-menu {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed overlay */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 40, 50, 0.98); /* Dark overlay */
    color: white;
    z-index: 5000; /* Highest */
    padding: 60px 20px 20px; /* Padding below close button */
    box-sizing: border-box;
    overflow-y: auto;
    flex-direction: column; /* Use flex later */
    align-items: center;
}

.mobile-menu-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    color: #ccc;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-close-btn:hover { color: white; }

/* Style the elements inside the mobile menu */
#mobileSearchContainer {
    width: 100%;
    max-width: 350px;
    margin-bottom: 30px;
    display: none; /* Hide by default, show only on index.html mobile */
}
 /* Reuse .search-bar styles or create specific ones */
 #mobileSearchContainer .search-bar {
      background-color: rgba(255,255,255,0.1);
      border-color: rgba(255,255,255,0.3);
      border-radius: 25px;
 }
  #mobileSearchContainer .search-bar input { color: white; }
  #mobileSearchContainer .search-bar input::placeholder { color: #ccc; }
  #mobileSearchContainer .search-bar i { color: #ccc; }


.mobile-main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.mobile-main-nav li {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-main-nav a {
    display: block;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
}
 .mobile-main-nav a:hover { background-color: rgba(255, 255, 255, 0.1); }
 .mobile-main-nav hr { border-color: rgba(255, 255, 255, 0.2); margin: 20px 0;}


 /* Fixed Add Button Base (Hidden on Desktop) */
 .btn-add-fixed {
     display: none; /* Hidden by default */
     position: fixed;
     bottom: 20px;
     right: 20px;
     width: 55px;
     height: 55px;
     border-radius: 50%;
     background-color: #333; /* Or your primary action color */
     color: white;
     font-size: 2rem;
     line-height: 55px; /* Center vertically */
     text-align: center;
     box-shadow: 0 4px 12px rgba(0,0,0,0.2);
     border: none;
     z-index: 900; /* Above content, below modals */
     cursor: pointer;
 }

 /* --- Notification Styles --- */
#notificationBellContainer { /* Positioning context for badge */
    position: relative;
    cursor: pointer;
    margin-top: auto;
    margin-bottom: auto;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #dc3545; /* Red badge */
    color: white;
    border-radius: 50%;
    padding: 1px 5px;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 16px; /* Ensure circle shape for single digit */
    height: 16px;
    line-height: 14px; /* Adjust for vertical centering */
    text-align: center;
    border: 1px solid white;
    display: none; /* Hidden by default */
}

.notification-panel {
    position: fixed;
    top: 55px; /* Below header */
    right: 15px;
    width: 350px;
    max-width: 90%;
    max-height: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    z-index: 4000; /* Below mobile menu, above content */
    display: none; /* Hidden by default */
    flex-direction: column;
}
.notification-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}
#notificationPanelCloseBtn {
     background: none; border: none; font-size: 1.5rem; color: #888; cursor: pointer; padding: 0; line-height: 1;
}
#notificationList {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto; /* Scroll if many notifications */
    flex-grow: 1; /* Take available space */
}
#notificationList li {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 0.9rem;
    cursor: pointer; /* If clickable later */
    transition: background-color 0.1s ease;
}
#notificationList li:last-child { border-bottom: none; }
#notificationList li:hover { background-color: #f8f9fa; }
#notificationList li.loading,
#notificationList li.empty { color: #888; text-align: center; padding: 20px; cursor: default;}
#notificationList li .noti-meta {
     display: block;
     font-size: 0.75em;
     color: #999;
     margin-top: 4px;
}
       
@media (max-width: 768px) {
    /* ... (other mobile base styles like body font-size) ... */

    /* --- Header/Nav --- */
    #desktopNavWrapper {
        display: none; /* Hide desktop nav items */
    }
    .mobile-menu-btn {
        display: block; /* Show hamburger */
    }
    .mobile-menu.is-open { /* Class added by JS to show menu */
         display: flex;
    }
    .site-header .header-container {
         /* Ensure logo and button are spaced correctly */
         justify-content: space-between;
    }
    .sidebar-nav {
        display:none;
    }

    /* --- App Layout --- */
    .mockup-container {
         flex-direction: column; /* Stack sidebar and main content */
         max-width: 98%;
    }
    .mockup-sidebar {
        width: 100%; /* Sidebar takes full width */
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
         max-height: 250px; /* Limit sidebar height? Optional */
         overflow-y: auto;
    }
    .mockup-main {
         width: 100%;
         padding: 15px; /* Adjust padding */
         min-width: auto !important;
    }
    .app-mockup {
         margin-top: -60px; /* Adjust overlap if needed */
    }
     .hero { /* Reduce hero padding */
         padding-top: 120px; padding-bottom: 100px;
     }
      .hero-content h1 { font-size: 2.5rem; 
    } /* Smaller hero text */

    /* --- Kanban Page Specific (index.html) --- */
    body.page-kanban .project-header {
         /* Stack elements if needed */
         flex-wrap: wrap;
         gap: 10px;
    }
     body.page-kanban .project-header .project-title-section {
          order: 1; /* Keep title first */
          flex-basis: 100%; /* Take full width */
     }
      body.page-kanban .project-header .project-actions {
           order: 2; /* Actions second */
           flex-basis: 100%;
           justify-content: space-between; /* Space search and add */
      }
     body.page-kanban .project-header .search-bar {
         display: none; /* Hide search in header, show in menu */
     }
      /* Show search bar in mobile menu ONLY on kanban page */
      body.page-kanban .mobile-menu #mobileSearchContainer {
           display: block;
      }
     /* Show fixed add button ONLY on kanban page */
     body.page-kanban .btn-add-fixed {
          display: block; /* Or inline-block/flex if using <a> */
     }
     .project-header .btn-add {
          display: none; /* Hide the one in the header */
     }

     /* Stack Kanban Columns */
     .kanban-board {
         flex-direction: column;
         gap: 0; /* Remove horizontal gap */
         overflow-x: hidden; /* Prevent accidental scroll */
     }
     .kanban-column {
          width: 100%;
          margin-bottom: 25px; /* Add vertical gap */
          min-width: 0; /* Override desktop min-width */
          flex: none; /* Override desktop flex */
     }

     /* --- Team Management Page Specific (team-management.html) --- */
     body.page-teams #teamGridContainer {
          grid-template-columns: 1fr; /* Stack team cards */
     }
     body.page-teams .team-detail-columns-wrapper {
          flex-direction: column; /* Stack detail columns */
          gap: 0;
     }
      body.page-teams .team-detail-column {
           margin-bottom: 25px; /* Add vertical gap */
      }
       body.page-teams .project-header .btn-add {
            display: none; /* Hide global add if showing fixed one */
       }
        /* Show fixed add button ONLY on teams page */
       body.page-teams .btn-add-fixed {
             display: block;
       }


     /* --- Modals --- */
     .modal-content {
        background-color: #fff;
        border-radius: 10px; /* Softer corners */
        padding: 30px 35px; /* More padding */
        max-width: 650px; /* Adjust max width */
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* Subtle shadow */
        /* Ensure height allows scrolling if needed */
        display: flex;
        flex-direction: column;
        overflow: scroll;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
    }

     .modal-content h2 { font-size: 1.4rem; }
     .modal-close-btn { font-size: 2rem; top: 10px; right: 15px;}
     /* Adjust form group spacing if needed */
     .form-group { margin-bottom: 12px; }
     .form-actions { flex-wrap: wrap; justify-content: center;} /* Stack buttons if needed */

     /* --- Timeline Page Specific (timeline.html) --- */
     body.page-timeline #timelineContainer {
         display: none; /* Hide the timeline content */
     }
     body.page-timeline #timelineArea::after {
         content: "Timeline view is best experienced on larger screens.";
         display: block;
         padding: 40px 15px;
         text-align: center;
         color: #6c757d;
         font-style: italic;
     }

    .project-detail {
        flex-direction: column;
    }

    .btn-logout {
        display:none;
    }

} /* End Media Query */

    
@media (768px <= width <= 1050px) {
  .mockup-sidebar {
    display:none;
  }
	.mockup-container {
	max-width:100%;
				  }
}
