/* App Container */
.app-container {
    display: flex;
/*    height: 100vh; */
	height: calc(100vh - 200px);
}

/* Left Column */
.app-container .left-column {
    width: 100px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.app-container .logo {
    padding: 20px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-container .logo h1 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.app-container .logo i {
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
    color: #4ecdc4;
}

.app-container .controls {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Button Styles */
.app-container .btn-primary {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border: none;
    padding: 12px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.app-container .btn-primary:hover {
    background: linear-gradient(135deg, #3dbdb4 0%, #34907d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.app-container .btn-primary:active {
    transform: translateY(0);
}

.app-container .btn-primary i {
    font-size: 16px;
}

/* Right Column */
.app-container .right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
    overflow: hidden;
}

.app-container .content-wrapper {
    flex: 1;
    padding: 20px;
    overflow: auto;
}

/* Welcome Message */
.app-container .welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #64748b;
}

.app-container .welcome-message h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.app-container .welcome-message p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.6;
}

.app-container .welcome-icon {
    font-size: 6rem;
    color: #4ecdc4;
    opacity: 0.7;
}


/* Gantt Container */
.gantt-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Gantt Controls */
.gantt-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.controls-left, .controls-center, .controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* View Selector */
.view-selector {
    position: relative;
}

.app-container .view-selector select {
    padding: 8px 15px;
    padding-right: 35px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: white;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    appearance: none;
    transition: all 0.2s;
}

.app-container .view-selector select:hover {
    border-color: #94a3b8;
}

.app-container .view-selector select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.app-container .view-selector::after {
    content: '\f0d7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

/* Navigation Buttons */
.app-container .nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: white;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.app-container .nav-btn:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #334155;
}

.app-container .nav-btn:active {
    background-color: #e2e8f0;
}

/* Date Display */
.app-container .current-date {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 200px;
    text-align: center;
}

/* Today Button */
.app-container .btn-today {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: white;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.app-container .btn-today:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

/* Gantt Content Area */
.gantt-content {
    flex: 1;
    overflow: auto;
    position: relative;
}

/* Month View */
.month-view {
    width: 100%;
    height: 100%;
    padding: 20px;
}

.month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    color: #64748b;
    text-align: center;
    padding: 10px 0;
}

.day-header {
    padding: 10px;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(100px, 1fr);
    border: 1px solid #e2e8f0;
}

.day-cell {
    border: 1px solid #e2e8f0;
    padding: 10px;
    position: relative;
    background-color: white;
}

.day-cell.other-month {
    background-color: #f8fafc;
    color: #94a3b8;
}

.day-number {
    position: absolute;
    top: 5px;
    right: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.day-cell.other-month .day-number {
    color: #cbd5e1;
}

.day-cell.today .day-number {
    background-color: #4ecdc4;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 3px;
    top: 3px;
}

/* Week View */
.week-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.week-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.week-day-header {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    border-right: 1px solid #e2e8f0;
}

.week-day-header.today {
    background-color: rgba(78, 205, 196, 0.1);
    color: #2c3e50;
}

.week-day-date {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    font-weight: normal;
}

.week-day-header.today .week-day-date {
    color: #4ecdc4;
    font-weight: 600;
}

.time-column-header {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    background-color: #f8fafc;
}

.week-grid {
    flex: 1;
    overflow: auto;
    display: flex;
}

.time-column {
    width: 80px;
    background-color: #f8fafc;
}

.time-slot {
    height: 60px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
    font-size: 12px;
    color: #64748b;
    position: relative;
}

.time-slot::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-color: #e2e8f0;
}

.time-slot.half-hour {
    height: 30px;
    font-size: 10px;
    color: #94a3b8;
}

.days-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-column {
    border-right: 1px solid #e2e8f0;
    position: relative;
}

.hour-cell {
    height: 60px;
    border-bottom: 1px solid #e2e8f0;
}

.half-hour-cell {
    height: 30px;
    border-bottom: 1px dashed #e2e8f0;
}

/* Day View */
.day-view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.day-header-single {
    display: grid;
    grid-template-columns: 80px 1fr;
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 5;
}

.day-single-header {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    border-right: 1px solid #e2e8f0;
    background-color: rgba(78, 205, 196, 0.1);
}

.day-grid {
    flex: 1;
    overflow: auto;
    display: flex;
}

.day-time-column {
    width: 80px;
    background-color: #f8fafc;
}

.day-column-single {
    flex: 1;
    border-right: 1px solid #e2e8f0;
    position: relative;
}

/* Task Bars */
.task-bar {
    position: absolute;
    background-color: #4ecdc4;
    border-radius: 4px;
    color: white;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 2;
    cursor: pointer;
    transition: all 0.2s;
}

.task-bar:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gantt-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls-left, .controls-center, .controls-right {
        justify-content: center;
    }
    
    .month-grid {
        grid-auto-rows: minmax(80px, 1fr);
    }
    
    .week-header, .day-header-single {
        grid-template-columns: 60px repeat(7, 1fr);
    }
    
    .time-column, .day-time-column {
        width: 60px;
    }
}


/* -------- */

/* Task Popup Modal */
.task-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.task-modal.active {
    display: flex;
}

.task-modal-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
    border-radius: 10px 10px 0 0;
}

.task-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.task-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.task-modal-close:hover {
    color: #334155;
}

.task-modal-body {
    padding: 20px;
}

.task-form-group {
    margin-bottom: 20px;
}

.task-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.task-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #334155;
    transition: all 0.2s;
    background-color: white;
}

.task-form-control:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.task-form-control.select {
    cursor: pointer;
}

.task-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.task-form-row .task-form-group {
    flex: 1;
    margin-bottom: 0;
}

.task-form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.task-modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f8fafc;
    border-radius: 0 0 10px 10px;
}

.btn-secondary {
    padding: 10px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: white;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.btn-success {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #1dd1a1 0%, #10ac84 100%);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1abc9c 0%, #0fa37c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-success:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error Message */
.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Conflict Warning */
.conflict-warning {
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    display: none;
}

.conflict-warning.show {
    display: block;
}

.conflict-warning h4 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conflict-warning h4 i {
    font-size: 16px;
}

.conflict-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.conflict-list li {
    padding: 5px 0;
    border-bottom: 1px solid #fde68a;
    font-size: 12px;
    color: #92400e;
}

.conflict-list li:last-child {
    border-bottom: none;
}

/* Loading overlay for form */
.form-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 10px;
    display: none;
}

.form-loading.active {
    display: flex;
}

/* New Task Button */
.btn-new-task {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: white;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-new-task:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}

/* Task Display in Calendar Views */
.month-task {
    background-color: #4ecdc4;
    color: white;
    padding: 3px 6px;
    border-radius: 3px;
    margin: 2px 0;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid #4ecdc4;
}

.month-task:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.month-task-multi {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 2px;
}

.month-task-list {
    margin-top: 25px;
    max-height: 100px;
    overflow-y: auto;
}

.week-task {
    position: absolute;
    left: 2px;
    right: 2px;
    background-color: #4ecdc4;
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    border-left: 3px solid #4ecdc4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.week-task:hover {
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.day-task {
    position: absolute;
    left: 5px;
    right: 5px;
    background-color: #4ecdc4;
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 13px;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    border-left: 4px solid #4ecdc4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.day-task:hover {
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.task-time {
    font-size: 10px;
    opacity: 0.9;
    margin-top: 2px;
}

.task-title {
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Task State Colors */
.task-state-todo {
    background-color: #ff6b6b;
    border-left-color: #ff4757;
}

.task-state-inprogress {
    background-color: #4ecdc4;
    border-left-color: #1dd1a1;
}

.task-state-done {
    background-color: #1dd1a1;
    border-left-color: #10ac84;
}

.task-state-onhold {
    background-color: #ff9f43;
    border-left-color: #ff9f43;
}

.task-state-cancelled {
    background-color: #64748b;
    border-left-color: #475569;
}

/* Task Detail Modal */
.task-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.task-detail-modal.active {
    display: flex;
}

.task-detail-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.task-detail-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.task-detail-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    flex: 1;
}

.task-state-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-left: 10px;
}

.task-detail-body {
    padding: 20px;
}

.task-detail-section {
    margin-bottom: 25px;
}

.task-detail-section h4 {
    margin: 0 0 10px 0;
    color: #64748b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-detail-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.task-detail-item {
    margin-bottom: 10px;
}

.task-detail-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    display: block;
}

.task-detail-value {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.task-detail-description {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.task-detail-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.app-container .btn-edit {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #4ecdc4;
    background-color: white;
    color: #4ecdc4;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.app-container .btn-edit:hover {
    background-color: rgba(78, 205, 196, 0.1);
}

.app-container .btn-delete {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #ef4444;
    background-color: white;
    color: #ef4444;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.app-container .btn-delete:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .task-modal-content,
    .task-detail-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .task-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .task-detail-info {
        grid-template-columns: 1fr;
    }
    
    .app-container .btn-new-task span {
        display: none;
    }
    
    .app-container .btn-new-task {
        padding: 8px;
    }
}

/* ----------- */

/* Add cursor pointer to clickable cells */
.day-cell {
    cursor: pointer;
    transition: background-color 0.2s;
}

.day-cell:hover {
    background-color: rgba(78, 205, 196, 0.05) !important;
}

.day-cell.other-month {
    cursor: default;
}

.day-cell.other-month:hover {
    background-color: #f8fafc !important;
}

.hour-cell, .half-hour-cell {
    cursor: pointer;
    transition: background-color 0.2s;
}

.hour-cell:hover, .half-hour-cell:hover {
    background-color: rgba(78, 205, 196, 0.05) !important;
}

.day-column, .day-column-single {
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 100%;
}

.day-column:hover, .day-column-single:hover {
    background-color: rgba(78, 205, 196, 0.02) !important;
}

/* Make sure task elements don't interfere with cell clicks */
.month-task, .week-task, .day-task {
    pointer-events: auto;
}

.day-cell > *:not(.month-task):not(.day-number) {
    pointer-events: none;
}

.day-cell .day-number {
    pointer-events: auto;
}


/* --------- */

/* Projects Panel */
.projects-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 15px;
    display: none;
}

.projects-panel.active {
    display: block;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.projects-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.projects-panel-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 16px;
}

.projects-list {
    max-height: 300px;
    overflow-y: auto;
}

.project-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.project-item:hover {
    background-color: #f8fafc;
}

.project-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.project-name {
    font-size: 14px;
    color: #334155;
    flex: 1;
}

.project-id {
    font-size: 12px;
    color: #64748b;
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
}

.projects-toggle-btn {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #4ecdc4;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.projects-toggle-btn:hover {
    background: #3dbdb4;
    transform: translateY(-1px);
}

/* Add to controls */
.controls-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ------- */

/* Ensure modal z-index is high enough */
.task-modal, .task-detail-modal {
    z-index: 1000 !important;
}

/* Make sure modal content is visible */
.task-detail-content {
    background-color: white;
    position: relative;
    z-index: 1001;
}

/* Task detail title fix */
.task-detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

#detailTaskTitle {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-right: 10px;
}

/* Fix for state badge alignment */
.task-state-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    align-self: flex-start;
}


.task-form-project { position: relative !important; z-index: -10 !important; }