:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #28a745, #20c997);
    --gradient-warning: linear-gradient(135deg, #f39c12, #e67e22);
    --gradient-danger: linear-gradient(135deg, #dc3545, #c82333);
    --gradient-info: linear-gradient(135deg, #17a2b8, #138496);
}

/* New Task Modal Styling - Same as Edit Task Modal */
#newTaskModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Task Log Modal Styles */
.task-log-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.task-log-modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    padding: 1.5rem;
    position: relative;
}

.task-log-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.task-log-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.task-log-modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

.task-log-modal-body::-webkit-scrollbar {
    width: 8px;
}

.task-log-modal-body::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.task-log-modal-body::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

.task-log-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Timeline Container */
.task-log-timeline-container {
    padding: 1.5rem;
}

.task-log-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.task-log-timeline-header h6 {
    color: #2c3e50;
    font-weight: 600;
}

.task-log-count {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Timeline */
.task-log-timeline {
    position: relative;
    padding-left: 2rem;
}

.task-log-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea, #764ba2, #667eea);
    border-radius: 1px;
}

/* Loading State */
.task-log-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.task-log-loading-spinner {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Empty State */
.task-log-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.task-log-empty-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Log Entry Styles */
.task-log-entry {
    position: relative;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.task-log-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.task-log-entry::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #667eea;
}

.task-log-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.task-log-entry-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-log-action-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-log-action-created {
    background: var(--gradient-success);
    color: white;
}

.task-log-action-updated {
    background: var(--gradient-info);
    color: white;
}

.task-log-action-completed {
    background: var(--gradient-success);
    color: white;
}

.task-log-action-uncompleted {
    background: var(--gradient-warning);
    color: #212529;
}

.task-log-action-deleted {
    background: var(--gradient-danger);
    color: white;
}

.task-log-action-assigned {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.task-log-action-priority {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
    color: white;
}

.task-log-action-due {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.task-log-entry-timestamp {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

.task-log-entry-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.task-log-user-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.task-log-user-info {
    flex: 1;
}

.task-log-user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.task-log-entry-description {
    color: #495057;
    line-height: 1.6;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

/* Modal Footer */
.task-log-modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
}

.task-log-modal-footer .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.task-log-modal-footer .btn:hover {
    transform: translateY(-1px);
}

/* Animation for new entries */
.task-log-entry {
    animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hover effects for interactive elements */
.task-log-entry:hover .task-log-entry-action {
    transform: scale(1.02);
}

.task-log-user-avatar:hover {
    transform: scale(1.1);
}

/* Focus states for accessibility */
.task-log-modal-content:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

#newTaskModal .modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px 12px 0 0;
}

#newTaskModal .form-control {
    border-radius: 8px;
    border: 1.5px solid #e9ecef;
    transition: all 0.3s ease;
}

#newTaskModal .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#newTaskModal .form-floating > .form-control:focus ~ label,
#newTaskModal .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
}

#newTaskModal .form-floating > .form-control:focus {
    border-color: #667eea;
}

#newTaskModal .card {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#newTaskModal .card-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

#newTaskModal .badge {
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

#newTaskModal .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#newTaskModal .btn-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#newTaskModal .btn-close:hover {
    opacity: 1;
}

#newTaskModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#newTaskModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

#newTaskModal .modal-body::-webkit-scrollbar {
    width: 12px;
}

#newTaskModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

#newTaskModal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
}

#newTaskModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#newTaskModal select.form-control {
    font-weight: normal;
}

#newTaskModal select.form-control option {
    font-weight: normal;
}

#newTaskModal input.form-control,
#newTaskModal textarea.form-control {
    font-weight: normal;
    font-size: 0.9rem;
}

#newTaskModal .form-floating > label {
    font-weight: normal;
    font-size: 0.85rem;
}

#newTaskModal .modal-footer {
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
}

/* Collaborator badges styling for both modals */
.selected-team-member,
.selected-external-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-info);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 4px 0;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.selected-team-member:hover,
.selected-external-user:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.selected-team-member-info,
.selected-external-user-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.selected-team-member-avatar,
.selected-external-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    margin-right: 8px;
}

.selected-team-member-name,
.selected-external-user-name {
    font-weight: 500;
    margin-right: 8px;
}

.selected-external-user-details {
    display: flex;
    flex-direction: column;
}

.selected-external-user-email {
    font-size: 0.75rem;
    opacity: 0.8;
}

.selected-team-member-remove,
.selected-external-user-remove {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-team-member-remove:hover,
.selected-external-user-remove:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* ===== IMPROVED TASK DASHBOARD STYLING ===== */
/* Enhanced existing classes with modern styling */

.task-full-dashboard {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: calc(100vh - 40px);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Enhanced Header */
.task-full-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.task-full-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.task-full-header .d-flex {
    position: relative;
    z-index: 1;
}

.task-full-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-full-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.task-full-stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.task-full-stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Enhanced Content Layout */
.task-full-content {
    display: flex;
    height: calc(100vh - 140px);
}

/* Enhanced Left Panel */
.task-full-left-panel {
    width: 40%;
    background: white;
    border-right: 1px solid rgba(102, 126, 234, 0.1);
    overflow-y: auto;
    padding-bottom: 20px;
}

/* Enhanced Filters Section */
.task-full-filters {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.task-full-search {
    position: relative;
    margin-bottom: 15px;
}

.task-full-search input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    font-size: 0.85rem;
    background: white;
    transition: all 0.3s ease;
}

.task-full-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.task-full-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 0.9rem;
}

.task-full-filter-group {
    margin-bottom: 12px;
}

.task-full-filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
    display: block;
}

.task-full-filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    background: white;
    transition: all 0.3s ease;
}

.task-full-filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Enhanced Tabs */
.task-full-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    margin-top: 15px;
}

.task-full-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.task-full-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.task-full-tab.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.task-full-tab.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Enhanced Task List */
.task-full-task-list {
    padding: 0 0 20px 0;
}

.task-full-tab-content {
    display: none;
}

.task-full-tab-content.active {
    display: block;
}

/* Enhanced Task Items */
.task-full-task-item {
    background: white;
    margin: 8px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.task-full-task-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.task-full-task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.task-full-task-item:hover::before {
    opacity: 1;
}

.task-full-task-item.active {
    border-left-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
}

.task-full-task-item.completed {
    border-left-color: #28a745;
    opacity: 0.8;
}

.task-full-task-item.urgent {
    border-left-color: #dc3545;
}

.task-full-task-content {
    padding: 12px 15px;
    position: relative;
    z-index: 1;
}

.task-full-task-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.task-full-task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #6c757d;
    flex-wrap: wrap;
    gap: 4px;
}

.task-full-task-order {
    background: var(--gradient-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.task-full-task-due {
    color: #f39c12;
    font-weight: 500;
}

.task-full-task-due.overdue {
    color: rgba(220, 53, 69, 0.7);
}

.task-full-task-priority {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.task-full-priority-high {
    background: #ffebee;
    color: #dc3545;
}

.task-full-priority-medium {
    background: #fff3e0;
    color: #f39c12;
}

.task-full-priority-low {
    background: #e8f5e8;
    color: #28a745;
}

.task-full-task-assigned {
    background: #f8f9fa;
    color: #495057;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.task-full-task-assigned i {
    color: #667eea;
}

/* Status Indicators Section */
.task-full-task-status {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 4px;
    align-items: center;
}

.task-status-item {
    display: flex;
    align-items: center;
}

.task-status-item .badge {
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: 500;
}

/* Enhanced Right Panel */
.task-full-right-panel {
    width: 60%;
    background: white;
    overflow-y: auto;
}

.task-full-right-content {
    padding: 25px;
}

/* Enhanced Details Header */
.task-full-details-header {
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.task-full-details-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.task-full-details-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.task-full-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 0.8rem;
}

.task-full-meta-item i {
    color: #667eea;
}

/* Enhanced Sections */
.task-full-details-section {
    margin-bottom: 25px;
}

.task-full-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.task-full-description {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 15px;
    border-radius: 10px;
    line-height: 1.5;
    color: #495057;
    font-size: 0.85rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* Enhanced Action Buttons */
.task-full-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.task-full-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.task-full-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.task-full-btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.task-full-btn-success {
    background: var(--gradient-success);
    color: white;
}

.task-full-btn-success:hover {
    background: linear-gradient(135deg, #229954, #1ea085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.task-full-btn-warning {
    background: var(--gradient-warning);
    color: white;
}

.task-full-btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.task-full-btn-danger {
    background: var(--gradient-danger);
    color: white;
}

.task-full-btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.task-full-btn-info {
    background: var(--gradient-info);
    color: white;
}

.task-full-btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* Enhanced Empty State */
.task-full-empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.task-full-empty-state i {
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.3);
    margin-bottom: 15px;
}

.task-full-empty-state h3 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.task-full-empty-state p {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Enhanced Collaborators Section */
.task-full-collaborators-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.task-full-collaborator-section {
    margin-bottom: 20px;
}

.task-full-collaborator-section:last-child {
    margin-bottom: 0;
}

.task-full-collaborator-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.task-full-collaborator-subtitle i {
    color: #667eea;
}

.task-full-collaborator-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-full-collaborator-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid;
    transition: all 0.2s ease;
    background: white;
    font-size: 0.8rem;
}

.task-full-collaborator-item.manager {
    background: var(--gradient-primary);
    color: white;
    border-color: #5a6fd8;
}

.task-full-collaborator-item.manager i {
    color: #ffd700;
}

.task-full-collaborator-item.internal {
    background: #e3f2fd;
    color: #1565c0;
    border-color: #bbdefb;
}

.task-full-collaborator-item.internal.viewed {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.task-full-collaborator-item.internal.unviewed {
    background: rgba(255, 243, 224, 0.6);
    color: rgba(239, 108, 0, 0.7);
    border-color: rgba(255, 204, 2, 0.6);
}

.task-full-collaborator-item.external {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #e1bee7;
}

.task-full-collaborator-name {
    font-weight: 500;
    margin-left: 6px;
}

.task-full-collaborator-email {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 6px;
}

.task-full-collaborator-status {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.task-full-no-collaborators {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
    font-size: 0.8rem;
}

/* Enhanced Scrollbars */
.task-full-left-panel::-webkit-scrollbar,
.task-full-right-panel::-webkit-scrollbar {
    width: 6px;
}

.task-full-left-panel::-webkit-scrollbar-track,
.task-full-right-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.task-full-left-panel::-webkit-scrollbar-thumb,
.task-full-right-panel::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 3px;
}

.task-full-left-panel::-webkit-scrollbar-thumb:hover,
.task-full-right-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .task-full-content {
        flex-direction: column;
    }

    .task-full-left-panel,
    .task-full-right-panel {
        width: 100%;
        height: 50%;
    }

    .task-full-task-item {
        margin: 6px 10px;
    }

    .task-full-details-meta {
        flex-direction: column;
        gap: 8px;
    }

    .task-full-actions {
        justify-content: center;
    }

    .task-full-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .task-full-header {
        padding: 15px 20px;
    }

    .task-full-header h1 {
        font-size: 1.2rem;
    }

    .task-full-stats {
        gap: 10px;
    }

    .task-full-stat-item {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .task-full-right-content {
        padding: 15px;
    }

    .task-full-details-title {
        font-size: 1.2rem;
    }

    .task-full-task-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .task-full-tabs {
        flex-direction: column;
        gap: 2px;
    }

    .task-full-tab {
        padding: 8px 12px;
    }
}

/* Enhanced Edit Task Modal Styling */
#editTaskModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#editTaskModal .modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px 12px 0 0;
}

#editTaskModal .form-control {
    border-radius: 8px;
    border: 1.5px solid #e9ecef;
    transition: all 0.3s ease;
}

#editTaskModal .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

#editTaskModal .form-floating > .form-control:focus ~ label,
#editTaskModal .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
}

#editTaskModal .form-floating > .form-control:focus {
    border-color: #667eea;
}

#editTaskModal .card {
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#editTaskModal .card-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

#editTaskModal .badge {
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

#editTaskModal .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

#editTaskModal .btn-close {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#editTaskModal .btn-close:hover {
    opacity: 1;
}

#editTaskModal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

#editTaskModal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

#editTaskModal .modal-body::-webkit-scrollbar {
    width: 12px;
}

#editTaskModal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

#editTaskModal .modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
}

#editTaskModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

#editTaskModal select.form-control {
    font-weight: normal;
}

#editTaskModal select.form-control option {
    font-weight: normal;
}

#editTaskModal input.form-control,
#editTaskModal textarea.form-control {
    font-weight: normal;
    font-size: 0.9rem;
}

#editTaskModal .form-floating > label {
    font-weight: normal;
    font-size: 0.85rem;
}

#editTaskModal .modal-footer {
    flex-shrink: 0;
    border-top: 1px solid #dee2e6;
}

/* Hover effects for collaborator items */
.task-full-collaborator-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.task-full-collaborator-item.manager:hover {
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

.task-full-collaborator-item.internal:hover {
    box-shadow: 0 2px 12px rgba(21, 101, 192, 0.2);
}

.task-full-collaborator-item.external:hover {
    box-shadow: 0 2px 12px rgba(46, 125, 50, 0.2);
}

/* Responsive design for collaborators */
@media (max-width: 768px) {
    .task-full-collaborators-container {
        padding: 15px;
    }
    
    .task-full-collaborator-item {
        padding: 10px 12px;
    }
    
    .task-full-collaborator-subtitle {
        font-size: 0.9rem;
    }
}

/* Task Log Modal Responsive Design */
@media (max-width: 768px) {
    .task-log-modal-content {
        max-height: 95vh;
    }

    .task-log-modal-body {
        max-height: 70vh;
    }

    .task-log-timeline {
        padding-left: 1.5rem;
    }

    .task-log-entry {
        padding: 1rem;
    }

    .task-log-entry-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .task-log-timeline-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}