body, html {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0; /* Disables sliders on the edge of the screen*/
    padding: 0; /* Disables sliders on the edge of the screen*/
    overflow: hidden; /* Disables sliders on the edge of the screen*/
    height: 100%; /* Disables sliders on the edge of the screen*/
    width: 100%; /* Disables sliders on the edge of the screen*/
}


/*CURSORS*/

#infiniteCanvas {
    cursor: crosshair;
  }
  
  body.shift-active * {
    cursor: crosshair !important;
  }
  
  .pointer-cursor {
    cursor: pointer !important;
  }
  
  .resize-cursor {
    cursor: ew-resize !important;
  }
  
  .move-cursor {
    cursor: move !important;
  }
  
  .col-resize-cursor {
    cursor: col-resize !important;
  }

/* ===== CSS Variables ===== */
:root {
    --primary-color: #007bff;
    --danger-color: #dc3545;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 2px 5px rgba(0,0,0,0.2);
    --transition-standard: all 0.2s ease;
}


/* ===== Context Menu styles ===== */
.menu-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

.menu-arrow {
    width: 12px;
    height: 12px;
    float: right;
    margin-left: 10px;
}

.context-menu-item {
    display: flex;
    align-items: center;
}

.context-menu .menu-divider {
    background-color: #ccc;
    height: 1px;
    margin: 5px 0;
    border: none;
  }
.context-menu {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 5px 0;
    z-index: 1000;
}

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #3C3F41;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}


/* ===== Modal styles ===== */


.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    width: 300px;
    transform: scale(0.65);
    transform-origin: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.cancel-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #eee;
    cursor: pointer;
}

.confirm-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: #007bff;
    color: white;
    cursor: pointer;
}

.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.project-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
}

.project-modal h2 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
}

.project-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-cancel {
    background: #e9ecef;
    color: #495057;
}

.modal-submit {
    background: #007bff;
    color: white;
}


/* ===== Activity Panel styles ===== */
.activity-panel {
    position: fixed;
    top: 110px;
    right: 0;
    width: 300px;
    height: calc(100vh - 30px);
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.activity-panel.visible {
    transform: translateX(0);
}

.activity-header {
    padding: 1rem;
    background-color: #dbdbdb;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-header h2 {
    margin: 0;
    font-size: 16px;
    color: #495057;
}

.activity-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    line-height: 1;
}

.activity-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.activity-item {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0.5rem;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-text-content {
    display: flex;
    gap: 8px;
    flex-direction: column;
    margin-bottom: 8px;
}

.activity-time {
    font-size: 0.6rem;
    color: #6c757d;
    margin-right: 10px;
}

.activity-text {
    color: #212529;
    font-size: 0.8rem;
    line-height: 1.4;
}

.activity-image-container {
    margin-top: 8px;
    display: flex;
    justify-content: flex-start;
    background: #f8f9fa;
    padding: 4px;
    border-radius: 4px;
    width: 100%;
}

.activity-image {
    max-height: 100px;
    width: auto;
    object-fit: contain;
}

/* Category styles */
.activity-category {
    margin: 8px 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.activity-category-header {
    padding: 8px 12px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dee2e6;
}

.activity-category-header:hover {
    background: #ebebeb;
}

.category-toggle {
    margin-right: 8px;
    font-size: 12px;
    color: #666;
}

.category-name {
    font-weight: 500;
    color: #495057;
}

.activity-category-content {
    padding: 4px 0;
    max-height: 300px;
    overflow-y: auto;
}

.activity-category.collapsed .activity-category-content {
    display: none;
}

/* Specific styles for items within categories */
.activity-category .activity-item {
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
}

.activity-category .activity-item:last-child {
    border-bottom: none;
}

/* Image container within categories */
.activity-category .activity-image-container {
    margin-top: 4px;
    padding: 4px;
}

/* Text content within categories */
.activity-category .activity-text-content {
    margin-bottom: 4px;
}

.activity-item-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.activity-item-clickable:hover {
    background-color: #f8f9fa;
}

/* ===== My Space ===== */
#backToBaseLayer {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1001;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.my-space {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    display: none;
}

.my-space.active {
    display: block;
}

/* ===== Project Overview styles ===== */
.projects-overview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    flex-direction: column;
    z-index: 1002;
}

.projects-overview canvas {
    width: 100%;
    height: 100%;
}


.projects-overview-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 10px;
}












/* ===== Project Tooltip ===== */
.project-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1001;
    display: none;
}

/* ===== Thumbnail Context Menu ===== */
.thumbnail-context-menu {
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 5px 0;
    z-index: 1000;
}

.thumbnail-context-menu .menu-item {
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
}

.thumbnail-context-menu .menu-item:hover {
    background: #f0f0f0;
}

/* ===== Snapshots ===== */
.snapshot-viewer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: rgba(255,255,255,0.95);
    display: none;
    flex-direction: column;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.snapshot-viewer.visible {
    display: flex;
}

.snapshot-header {
    padding: 5px 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 25px;
}

/* ===== Snapshots (continued) ===== */
.snapshots-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 5px 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

.snapshot-thumbnail {
    flex: 0 0 80px;
    height: 60px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: white;
    position: relative;
}

.snapshot-thumbnail:hover {
    border-color: #007bff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.snapshot-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.snapshot-label {
    text-align: center;
    font-size: 11px;
    color: #666;
    white-space: pre-line;
    line-height: 1.3;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.delete-snapshot {
    position: absolute;
    right: 2px;
    top: 2px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    padding: 2px;
    font-size: 11px;
    color: #dc3545;
}

.delete-snapshot:hover {
    opacity: 1;
}

.snapshot-viewer.minimized {
    height: 40px;
}

.snapshot-viewer.minimized .snapshots-container {
    display: none;
}

/* ===== Milestone styles ===== */

.milestone-toggle-button {
    position: absolute;
    background: #3C3F41;
    color: white;
    padding: 4px 12px;
    border-radius: 0 0 4px 4px;
    cursor: pointer;
    font-size: 12px;
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.milestone-line {
    position: absolute;
    width: 2px;
    background-color: #dc3545;  /* Red color for milestone line */
    pointer-events: none;
    z-index: 900;
}

.milestone-selected {
    background-color: rgba(0, 123, 255, 0.2);  /* Light blue background for selected */
    border: 2px solid #007bff;  /* Blue border for selected */
}

/* Milestone line when selected */
.milestone-line.selected {
    background-color: #007bff;  /* Blue color for selected milestone line */
    width: 3px;  /* Thicker line when selected */
}

/* Milestone container */
.timeline-milestone {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.timeline-milestone:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.timeline-milestone.selected {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

.milestone-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1001;
    white-space: nowrap;
}

.milestone-arrows {
    position: absolute;
    display: flex;
    gap: 20px;
    align-items: center;
    pointer-events: none;
}

.milestone-arrow {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.milestone-arrow-left {
    border-right: 8px solid rgba(0, 0, 0, 0.8);
}

.milestone-arrow-right {
    border-left: 8px solid rgba(0, 0, 0, 0.8);
}

.timeline-milestone-area {
    z-index: 999;
    pointer-events: auto;
}
















/* ===== Filter styles ===== */




/* Toggle group specific styles */
.toggle-group {
    display: flex;
    gap: 0;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.toggle-group .toggle-button {
    padding: 8px 16px;
    background: white;
    border: none;
    color: #495057;
    cursor: pointer;
    min-width: 80px;
    height: 40px;
    transition: background-color 0.2s ease;
}

.toggle-group .toggle-button:not(:last-child) {
    border-right: 1px solid #dee2e6;
}

.toggle-group .toggle-button.active {
    background-color: #e9ecef;
    color: #495057;
}




.buttons-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.buttons-container button {
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.custom-dropdown {
    position: relative;
    min-width: 200px;
    z-index: 1001;
    margin-left: 220px;
}

.dropdown-header {
    height: 24px;
    font-size: 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    padding: 0 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.dropdown-header:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 200px;
    margin-top: 4px;
}

.dropdown-category-header {
    padding: 8px 12px;
    font-weight: bold;
    color: #666;
    background: #f8f9fa;
    font-size: 12px;
}

.dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    position: relative;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item:hover > .filter-submenu {
    display: block;
}

.filter-submenu {
    display: none;
    position: absolute;
    right: 100%;     /* Change left: 100% to right: 100% */
    left: auto;      /* Add this to clear any left value */
    top: -1px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1002;
}

.submenu-header {
    padding: 8px 12px;
    font-weight: bold;
    color: #666;
    background: #f8f9fa;
    font-size: 12px;
}

.submenu-item {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submenu-item input[type="checkbox"] {
    margin: 0;
}

.submenu-item label {
    font-size: 12px;
    cursor: pointer;
}




/* ===== Project Drop Zone ===== */
.projects-elements-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}



.thumbnail-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}



/* Weekday selector styling */
.weekday-selector {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.weekday-box {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.weekday-box.selected {
    background-color: #007bff;
    color: white;
    border-color: #0062cc;
}

.weekday-box:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.day-selection-note {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.warning-text {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
}




/* Enhanced project styling */
.project-drop-zone.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
  }
  
  .project-drop-zone.project-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  }
  
  .new-project-click-area.project-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
  }
  
  .new-project-click-area.project-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: #eaeaea;
  }

.project-drop-zone.thumbnail-drop-zone {
    position: absolute;
    background-color: transparent;
    pointer-events: all;
    z-index: 1000;
}

.project-drop-zone.thumbnail-drop-zone.drag-over {
    background-color: rgba(0, 123, 255, 0.1);
    border: 2px dashed #007bff;
}

.project-drop-zone.timeline-drop-zone {
    pointer-events: all;
    background-color: rgba(0, 123, 255, 0.05);
}

.project-drop-zone.drag-over {
    background-color: rgba(0, 123, 255, 0.1);
    border: 2px dashed #007bff;
}

.thumbnail-overlay-zone {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.2s;
}

.thumbnail-overlay-zone:hover,
.thumbnail-overlay-zone.hover {
    opacity: 1;
    pointer-events: all;
}

.thumbnail-icon-button {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    z-index: 1002;
    pointer-events: auto !important;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.project-drop-zone:hover ~ .thumbnail-icon-button.image-button,
.project-drop-zone:hover ~ .thumbnail-icon-button.trash-button {
    opacity: 1;
}

.thumbnail-icon-button:hover {
    opacity: 1;
}

.thumbnail-icon-button.image-button {
    left: 10px;
    bottom: 10px;
    background: #4488ff;
}

.thumbnail-icon-button.trash-button {
    right: 10px;
    bottom: 10px;
    background: #ff4444;
}


.project-container {
    position: relative;
}

.project-container:hover .thumbnail-icon-button {
    opacity: 1;
}

.project-name-label {
    position: absolute;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    cursor: text;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
    padding: 5px 0;
    z-index: 100; /* Very high z-index */
    pointer-events: auto !important; /* Force pointer events */
  }
  
  .project-name-input {
    width: 90%;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    border: none;
    outline: none;
    z-index: 101;
  }


















/* Sprint Selection Dialog */

.sprint-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 5px 0;
    z-index: 1001;
    min-width: 120px;
}

.sprint-item:hover {
    background-color: #f0f0f0;
}


.sprint-selection-dialog {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 250px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 15px;
    z-index: 1000;
}

.sprint-list {
    max-height: 300px;
    overflow-y: auto;
}

.sprint-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.sprint-item:hover {
    background-color: #f5f5f5;
}

.create-new-sprint {
    padding: 10px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    color: #007bff;
    cursor: pointer;
    text-align: center;
}

.create-new-sprint:hover {
    background-color: #f5f5f5;
}









/* Project Side Panel Button */
.project-side-panel-button {
    position: fixed;
    top: 160px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.project-side-panel-button:hover {
    background-color: #0069d9;
    transform: scale(1.05);
}

.project-side-panel-button:active {
    transform: scale(0.95);
}


/* MySpace Navigation - Updated with white arrows and repositioning */
.myspace-nav-container {
    position: fixed;
    bottom: 20px; /* Move up from bottom edge */
    left: 50%;
    transform: translateX(-50%);
    height: 40px;
    background-color: #4285f4;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px; /* Rounded corners */
    width: auto; /* Not full width */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
}

.myspace-nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This spreads items to edges */
    width: auto;
    max-width: 300px;
    padding: 0 5px; /* Reduced horizontal padding from 15px to 5px */
    height: 36px;
}

.myspace-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.myspace-nav-arrow img {
    filter: brightness(0) invert(1); /* Makes the SVG icons white */
    width: 28px;
    height: 28px;
}

.myspace-nav-title {
    font-weight: bold;
    font-size: 16px;
    color: white;
    text-align: center;
    margin: 0 30px; /* 3px spacing between label and icons */
    flex: 1;
}