/* assets/css/styles.css */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #44b3b6;
    --light-color: #f4f7f9;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* line-height: 1.6; */
    color: #333;
    background-color: #f5f7fa;
    direction: ltr!important;
}

/* Login/Register View Styles */
.login-view .auth-container {
    display: flex;
    min-height: 100vh;
}

.auth-box {
    flex: 1;
    background-color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--box-shadow);
}

.featured-content {
    flex: 1.5;
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tabs {
    display: flex;
    margin-bottom: 1.5rem;
}

.tabs button {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 2px solid #eee;
}

.tabs button.active {
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
}

.featured-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
}


/* Dashboard View Styles */
.dashboard-view .top-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: var(--box-shadow);
}
.whiteboard-body .top-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: var(--box-shadow);
    z-index: 999;
}
.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.username {
    font-weight: 500;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 64px); /* Subtract top nav height */
    padding-top: 64px; /* Match top nav height */
}
.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333!important;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    z-index: 2000;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    display: flex; /* Add this to properly align content */
    align-items: center; /* Center the items vertically */
    justify-content: space-between; /* Distribute space between the message and the close button */
}

.notification.show {
    bottom: 20px;
    opacity: 1;
}
.main-content {
    margin-left: 250px;  /* Add this to offset the fixed sidebar */
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}
.close-notification {
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 10px;
    color: #ccc;
}

.close-notification:hover {
    color: white;
}
/* .sidebar {
    width: 250px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-right: 1px solid #e0e0e0;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    margin-top: 64px;
z-index: 1000;
} */
.sidebar {
    width: 250px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-right: 1px solid #e0e0e0;
    position: fixed;
    height: calc(100vh - 64px); /* Subtract top nav height */
    top: 64px; /* Position below the top nav */
    left: 0; /* Ensure it's positioned from the left */
    overflow-y: auto; /* Enable vertical scrolling */
    z-index: 900; /* Below the top nav z-index */
}
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 64px; /* Explicitly set the height */

}
.sidebar ul {
    list-style: none;
}

.sidebar a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: var(--light-color);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.content {
    margin-left: 250px;  /* Match sidebar width */
    padding: 2rem;
    margin-top: 64px; /* Match header height */
    overflow-y: auto;
    width: calc(100% - 250px); /* Ensure content doesn't overflow */
    box-sizing: border-box;
}
.container {
    display: flex;
    height: 100vh;
}
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.widget {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.widget h3 {
    background-color: var(--light-color);
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.widget-content {
    padding: 1.5rem;
}

/* Add to assets/css/styles.css */

/* Message styles */
.error-message,
.success-message {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid var(--danger-color);
    color: var(--danger-color);
}

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid var(--success-color);
    color: var(--success-color);
}

/* Add to assets/css/styles.css */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Search Container */
/* .search-container {
    margin-bottom: 1.5rem;
} */

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form input[type="text"] {
    /* flex: 1; */
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.btn-light {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-light:hover {
    background-color: #e9ecef;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: var(--light-color);
    font-weight: 600;
}

.data-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.project-link:hover {
    text-decoration: underline;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-archived {
    background-color: rgba(189, 195, 199, 0.1);
    color: #7f8c8d;
}

.status-deleted {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

/* Action Buttons */
.actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-edit {
    background-color: var(--secondary-color);
}

.btn-delete {
    background-color: var(--danger-color);
}

/* No Data Message */
.no-data-message {
    padding: 2rem;
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: #7f8c8d;
}

/* Add to assets/css/styles.css */

/* Form Container */
.form-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group .required {
    color: var(--danger-color);
}

input[type="text"], 
input[type="email"], 
input[type="password"],
input[type="number"],
select, 
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.dependency-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.dependency-row select {
    flex: 1;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.btn-collab {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
}
.task-dependencies {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}
.task-card.completed {
    background-color: rgba(76, 175, 80, 0.1);
}
.dependency-item {
    padding: 4px 8px;
    margin: 2px 0;
    background-color: #e3f2fd;
    border-radius: 4px;
    font-size: 0.9em;
}


.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Add to assets/css/styles.css */

select {
    background-color: white;
    height: 3rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.form-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
/* Add to assets/css/styles.css */

/* Card Styles */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--light-color);
    border-bottom: 1px solid #eee;
}

.card-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Project Overview Styles */
.project-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-weight: 500;
    color: #666;
    margin-bottom: 0.25rem;
}

.project-description {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.project-description h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Project Details Grid */
.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Item List Styles */
/* .item-list, .member-list, .task-list { */
.item-list, .member-list {
    list-style: none;
    padding: 0;
}

.item-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-content {
    margin-bottom: 0.5rem;
}

.item-meta {
    font-size: 0.85rem;
    color: #666;
}

/* Member List Styles */
.member-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.member-item:last-child {
    border-bottom: none;
}

.member-name {
    font-weight: 500;
}

.member-role {
    font-size: 0.85rem;
    color: #666;
}

.member-email {
    font-size: 0.9rem;
    color: #333;
}

/* Task List Styles */
.task-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.task-item:last-child {
    border-bottom: none;
}

.task-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.task-status.status-pending {
    background-color: #f39c12;
}

.task-status.status-in_progress {
    background-color: #3498db;
}

.task-status.status-completed {
    background-color: #2ecc71;
}

.task-status.status-cancelled {
    background-color: #7f8c8d;
}

.task-status.status-overdue {
    background-color: #e74c3c;
}

.task-info {
    flex: 1;
}

.task-title {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.task-title:hover {
    text-decoration: underline;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.no-data {
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
    padding: 1rem 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1111;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.warning {
    color: var(--danger-color);
    margin: 1rem 0;
}

.spacer {
    flex: 1;
}

.btn-danger {
    background-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}
/* Organization Page Styles */
.subscription-free, .subscription-basic, .subscription-pro {
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.subscription-free {
    background-color: rgba(189, 195, 199, 0.1);
    color: #7f8c8d;
}

.subscription-basic {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.subscription-pro {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.meta-label {
    font-weight: 500;
    color: #666;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1rem;
}

.ip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ip-list li {
    padding: 0.25rem 0;
}

.usage-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.usage-stats h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* User Management Styles */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.role-admin {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.role-project_manager {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.role-team_member {
    background-color: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.role-general_manager {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
}

.page-info {
    font-size: 0.9rem;
    color: #666;
}

.warning-message {
    background-color: rgba(243, 156, 18, 0.1);
    border-left: 3px solid #f39c12;
    color: #333;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
}
.button-group {
    display: flex;
    gap: 10px;
}
.filter-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.filter-controls {
    display: flex
;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-controls select {
    min-width: 150px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
}

.filter-controls select {
    padding: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
select {
    text-rendering: auto;
    color: fieldtext;
    letter-spacing: normal;
    word-spacing: normal;
    line-height: normal;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    text-align: start;
    appearance: auto;
    box-sizing: border-box;
    align-items: center;
    -webkit-rtl-ordering: logical;
    background-color: field;
    cursor: default;
    margin: 0em;
    white-space: pre;
    border-width: 1px;
    border-style: solid;
    border-color: light-dark(rgb(118, 118, 118), rgb(133, 133, 133));
    border-image: initial;
    border-radius: 0px;
}
    
.add-task-btn {
    padding: 8px 16px;
    background-color: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-task-btn:hover {
    background-color: #1565c0;
}

.task-list {
    display: grid;
    gap: 15px;
}

.task-card {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.5s;
}

.task-card h3 {
    margin-bottom: 10px;
}

.task-card p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}
.task-card .task-header {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.task-card .task-toggle-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s;
}

.task-card .task-content {
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    white-space: normal!important;
}

.task-card .task-content.collapsed {
    display: none;
}

.task-card.expanded .task-toggle-icon {
    transform: rotate(45deg);
}
.task-metadata {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border: black;
    border-style: dotted;
    border-width: thin;
}
.toggle-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s;
}
.task-metadata h4 {
    color: #495057;
    margin-bottom: 5px;
}
/* .task-card {
transition: transform 0.2s;
} */
.task-card:hover {
transform: translateX(5px);
}

.task-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    border-radius: 4px;
}

.header {
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.header-buttons {
    margin-bottom: 15px;
}


.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.add-task-btn {
    background-color: #1976d2;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.add-task-btn:hover {
    background-color: #1565c0;
}

/* Export button */
.btn-export {
    background-color: #2e7d32;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* Filter controls */
.filter-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;

}

.filter-section select {
    min-width: 200px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: menulist;
    background-color: white;
}

/* Search box */
.search-container {
    display: block;
    position: relative;
    flex-grow: 1;
    /* max-width: 300px; */
    /* width: 83%; */
}

.search-box {
    min-width: 80%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.task-card.expanded .task-toggle-icon {
    transform: rotate(45deg);
}





.clear-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  padding: 4px;
}

.clear-button:hover {
  color: #333;
}
/* Task counter */
/* .filter-counter {
    margin-left: auto;
    color: #1976d2;
    white-space: nowrap;
} */

/* Task title styling */
.task-header h3 {
    font-weight: normal;
    font-size: 1em;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-counter {
        margin-left: 0;
        margin-top: 10px;
        text-align: right;
    }
}

.filter-counter {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
    margin-left: 10px;
}
.project-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.advisor-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
}

.stat-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.critical-path-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.critical-path-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.critical-path-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.critical-path-chart {
    height: 300px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 1rem;
    background-color: #fafafa;
}

/* Additional styles for project management page */
.project-dashboard {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}

/* Sidebar icons and badges */
.icon {
display: inline-block;
width: 24px;
margin-right: 8px;
text-align: center;
}

.sidebar .badge {
display: inline-block;
background-color: var(--primary-color);
color: white;
border-radius: 12px;
padding: 2px 8px;
font-size: 0.8rem;
margin-left: 8px;
}

/* Project title in sidebar */
.project-sidebar-title {
padding: 1rem 1.5rem;
margin-bottom: 1rem;
background-color: var(--secondary-color);
color: white;
}

.project-sidebar-title h2 {
margin: 0;
font-size: 1.2rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.items-list {
    margin-bottom: 10px;
}

.items-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 4px;
}

.items-list-item input {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.items-list-item input.milestone-title {
    flex: 2;
    margin-right: 10px;
}

.items-list-item input.milestone-desc {
    flex: 3;
    margin-right: 10px;
}

.items-list-item input.milestone-date {
    width: 150px;
    margin-right: 10px;
}
.items-list-item button {
    padding: 4px 8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn2 {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    background-color: #1976d2;
}
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.type-consultant {
    /* background-color: rgba(52, 152, 219, 0.1); */
    border-left: 4px solid #2a4bef!important; /* Blue left border */
    /* color: #3498db; */
}
/* Notes styling */
.note-card {
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s ease;
}

.note-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.note-header {
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.note-toggle-icon {
    margin-right: 10px;
    font-weight: bold;
    font-size: 16px;
}

.note-type-badge {
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    background-color: #e0e0e0;
}

.note-content {
    padding: 15px;
    background-color: #fff;
}

.note-content.collapsed {
    display: none;
}

.note-preview {
    margin-bottom: 15px;
    /* white-space: pre-line; */
}

.note-metadata {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.note-actions {
    display: flex;
    gap: 8px;
    /* justify-content: flex-end; */
}

/* Note type styling */
.type-guide {
    border-left: 4px solid #4caf50!important; /* Green left border */
}

.type-decision {
    border-left: 4px solid #2196f3;
}

.type-reference {
    border-left: 4px solid #ff9800!important; /* Orange left border */
}

.type-knowledge {
    border-left: 4px solid #f44336!important; /* Red left border */
}
.type-meeting {
    border-left: 4px solid #9c27b0;
}
.type-question {
    border-left: 4px solid #3f51b5!important; /* Indigo left border */
}
.type-observation {
    border-left: 4px solid #795548;
}

/* Note view panel */
.note-view-panel {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.note-view-panel .note-header {
    background-color: transparent;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
    display: block;
    cursor: default;
    padding: 0 0 15px 0;
}

.note-view-panel .note-header h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.note-view-panel .note-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.note-view-panel .note-metadata span {
    margin-right: 10px;
    color: #666;
    font-size: 14px;
}

.note-view-panel .note-type {
    padding: 3px 8px;
    border-radius: 12px;
    background-color: #e0e0e0;
}

.note-view-panel .note-category {
    padding: 3px 8px;
    border-radius: 12px;
    background-color: #f0f0f0;
}

.note-view-panel .note-actions {
    margin-top: 15px;
    justify-content: flex-start;
}

.note-view-panel .note-content {
    white-space: pre-line;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
    padding: 0;
    line-height: 1.2;
}
.ask-me-btn {
    background-color: #8e44ad;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
}

.ask-me-btn:hover {
    background-color: #9b59b6;
}

/* Task priority indicators */
.priority-high {
    background-color: rgba(231, 76, 60, 0.1);
    /* background-color: #fbd8da; */
    border-left: 4px solid #e74c3c !important; /* Red left border */
}

.priority-medium {
    background-color: #f39c121a;
    border-left: 4px solid #f39c12 !important; /* Orange left border */
}

/* Add an additional background tint for stronger visual indication */
/* .task-card.priority-high .task-header { */
    /* background-color: rgba(231, 76, 60, 0.1); */
/* } */

/* .task-card.priority-medium .task-header { */
    /* border-radius: 3px; */
    /* background-color: rgba(243, 156, 18, 0.1); */
/* } */

/* Optional: Add icons or badges */
.task-card.priority-high .task-header::after {
    content: "⚠️ High Priority";
    font-size: 0.8em;
    margin-left: auto;
    color: #e74c3c;
    font-weight: bold;
}

.task-card.priority-medium .task-header::after {
    content: "🔶 Medium Priority";
    font-size: 0.8em;
    margin-left: auto;
    color: #f39c12;
    font-weight: bold;
}

/* AI Indicators Styling */
#ai-indicators {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.ai-indicator {
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

#ai-generation-indicator {
    /* background-color: #ffb74d;
    color: #7b5000; */
    background-color: #71fb62;
    color: #167736;
    animation: pulse 1.5s infinite;
}

#ai-quota-counter {
    background-color: #e0f2f1;
    color: #00796b;
}

.ai-icon {
    margin-right: 4px;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* AI Generation indicator */
/* #ai-generation-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
} */

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Timeline styles */
.timeline-container {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.timeline-item {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 3px solid #ccc;
    position: relative;
}

.timeline-date {
    font-weight: bold;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 3px;
}

.timeline-milestone {
    border-left: 3px solid #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.timeline-task {
    border-left: 3px solid #3498db;
}

.timeline-activity {
    border-left: 3px solid #2ecc71;
}

.timeline-budget {
    border-left: 3px solid #f39c12;
}

/* Advisory styles */
.advisory-message {
    background-color: #f8f9fa;
    border-left: 4px solid #4a6fa5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.advisory-message.high {
    border-left-color: #e74c3c;
}

.advisory-message.medium {
    border-left-color: #f39c12;
}

.advisory-message.low {
    border-left-color: #2ecc71;
}

.advisory-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Critical path styles */
.critical-path-item {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid #e74c3c;
    padding: 10px;
    margin-bottom: 10px;
}

/* Budget card styling */
.budget-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.budget-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.5s ease;
}

.budget-card.status-draft {
    border-left: 5px solid #f39c12;
}

.budget-card.status-pending {
    border-left: 5px solid #3498db;
}

.budget-card.status-approved {
    border-left: 5px solid #2ecc71;
}

.budget-card.status-denied {
    border-left: 5px solid #e74c3c;
}

.budget-card.status-removed {
    border-left: 5px solid #95a5a6;
    opacity: 0.7;
}

.budget-header {
    padding: 12px 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.budget-header strong {
    flex-grow: 1;
    margin-left: 5px;
}

.budget-toggle-icon {

    margin-right: 5px;
    font-weight: bold;
    width: 20px;
    text-align: center;

}

.budget-amount {
    font-weight: bold;
    margin-right: 10px;
}

.budget-status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: bold;
}

.status-draft .budget-status-badge {
    background-color: #f39c12;
    color: white;
}

.status-pending .budget-status-badge {
    background-color: #3498db;
    color: white;
}

.status-approved .budget-status-badge {
    background-color: #2ecc71;
    color: white;
}

.status-denied .budget-status-badge {
    background-color: #e74c3c;
    color: white;
}

.status-removed .budget-status-badge {
    background-color: #95a5a6;
    color: white;
}

.budget-content {
    padding: 15px;
    border-top: 1px solid #eee;
}

.budget-content.collapsed {
    display: none;
}

.budget-metadata {
    margin-bottom: 15px;
}

.budget-metadata p {
    margin: 5px 0;
}

.budget-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.budget-note-link {
    color: #3498db;
    text-decoration: underline;
}

.filter-section {
    margin: 15px 0;
}

.filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-counter {
    margin-left: auto;
    color: #666;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-counter {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .budget-header {
        flex-wrap: wrap;
    }
    
    .budget-actions {
        flex-direction: column;
    }
}
/* Activity Card Styling */
.activity-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.activity-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.activity-header {
    padding: 12px 15px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.activity-toggle-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 10px;
    font-weight: bold;
}

.activity-content {
    padding: 15px;
    background-color: #fff;
    transition: max-height 0.3s ease;
}

.activity-content.collapsed {
    max-height: 0;
    padding: 0 15px;
    overflow: hidden;
}

.activity-preview {
    margin-bottom: 15px;
    color: #555;
}

.activity-metadata {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.activity-metadata p {
    margin: 5px 0;
}

.activity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Status badges */
[class^="badge-"] {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    margin-left: 10px;
}

.badge-pending {
    background-color: #f39c12;
}

.badge-started {
    background-color: #3498db;
}

.badge-in_progress {
    background-color: #2980b9;
}

.badge-completed {
    background-color: #27ae60;
}

.badge-cancelled {
    background-color: #7f8c8d;
}

/* Status-based card styling */
.activity-card.status-pending {
    border-left: 4px solid #f39c12;
}

.activity-card.status-started {
    border-left: 4px solid #3498db;
}

.activity-card.status-in_progress {
    border-left: 4px solid #2980b9;
}

.activity-card.status-completed {
    border-left: 4px solid #27ae60;
}

.activity-card.status-cancelled {
    border-left: 4px solid #7f8c8d;
}

/* Activity duration badge */
.activity-duration {
    display: inline-block;
    background-color: #ccd0d3;
    color: rgb(47, 29, 29);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Activity view panel styling */
.activity-view-panel {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.activity-view-panel .activity-header {
    background-color: transparent;
    padding: 0 0 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: block;
    cursor: default;
}

.activity-view-panel .activity-header h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.activity-view-panel .activity-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.activity-view-panel .activity-metadata span {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 0.9rem;
}

.activity-view-panel .activity-actions {
    margin-top: 15px;
}

.activity-view-panel .activity-content {
    padding: 0;
}

.activity-view-panel .activity-description,
.activity-view-panel .activity-results,
.activity-view-panel .activity-notes,
.activity-view-panel .activity-resources {
    margin-bottom: 25px;
}

.activity-view-panel h4 {
    color: #2c3e50;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    margin-bottom: 15px;
}


/* .gantt-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    margin-bottom: 20px;
}

.gantt-header {
    overflow-x: hidden;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.gantt-body {
    display: flex;
    overflow-x: auto;
    max-height: calc(100vh - 220px);
}

.gantt-labels {
    min-width: 200px;
    border-right: 1px solid #ddd;
    background-color: #f8f9fa;
}

.gantt-chart {
    overflow-x: auto;
    position: relative;
} */

.timeline-header {
    display: flex;
    flex-direction: column;
}

.timeline-months {
    display: flex;
    height: 30px;
    border-bottom: 1px solid #ddd;
}

.timeline-month {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-right: 1px solid #ddd;
    padding: 0 10px;
    box-sizing: border-box;
}

.timeline-days {
    display: flex;
    height: 25px;
}

.timeline-day {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
    box-sizing: border-box;
    font-size: 12px;
    color: #666;
}

.timeline-day.weekend {
    background-color: #f9f9f9;
}

.task-labels {
    display: flex;
    flex-direction: column;
}

.task-label {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.status-indicator.pending {
    background-color: #f7cb4d;
}

.status-indicator.in_progress {
    background-color: #4a86e8;
}

.status-indicator.completed {
    background-color: #7bc043;
}

.status-indicator.cancelled {
    background-color: #aaaaaa;
}

.status-indicator.overdue {
    background-color: #e74c3c;
}

.task-bar {
    cursor: pointer;
    transition: opacity 0.2s;
}

.task-bar:hover {
    opacity: 0.8;
}

.loading, .error, .no-data {
    padding: 20px;
    text-align: center;
    color: #666;
}

.error {
    color: #e74c3c;
}
/* Gantt Chart Styles */

/* .gantt-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    margin-bottom: 20px;
    height: calc(100vh - 320px);
}

.gantt-header {
    overflow-x: hidden;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.gantt-body {
    display: flex;
    overflow: auto;
    height: 100%;
}

.gantt-labels {
    min-width: 200px;
    max-width: 200px;
    border-right: 1px solid #ddd;
    background-color: #f8f9fa;
    overflow-y: auto;
}

.gantt-chart {
    overflow: auto;
    position: relative;
    flex-grow: 1;
}

.timeline-header {
    display: flex;
    flex-direction: column;
}

.timeline-months {
    display: flex;
    height: 30px;
    border-bottom: 1px solid #ddd;
}

.timeline-month {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-right: 1px solid #ddd;
    padding: 0 10px;
    box-sizing: border-box;
}

.timeline-days {
    display: flex;
    height: 25px;
}

.timeline-day {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #eee;
    box-sizing: border-box;
    font-size: 12px;
    color: #666;
}

.timeline-day.weekend {
    background-color: #f9f9f9;
}

.task-labels {
    display: flex;
    flex-direction: column;
}

.task-label {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.status-indicator.pending {
    background-color: #f7cb4d;
}

.status-indicator.in_progress {
    background-color: #4a86e8;
}

.status-indicator.completed {
    background-color: #7bc043;
}

.status-indicator.cancelled {
    background-color: #aaaaaa;
}

.status-indicator.overdue {
    background-color: #e74c3c;
}

.task-bar {
    cursor: pointer;
    transition: opacity 0.2s;
}

.task-bar:hover {
    opacity: 0.8;
}

.loading, .error, .no-data {
    padding: 20px;
    text-align: center;
    color: #666;
}

.error {
    color: #e74c3c;
}

.gantt-legend {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gantt-legend h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.dependency-line {
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: #555;
    margin-right: 8px;
    position: relative;
}

.dependency-line:after {
    content: "";
    position: absolute;
    right: -4px;
    top: -3px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #555;
}

.dependency-line.finish-to-start {
    background-color: #555;
}

.dependency-line.start-to-start {
    background-color: #4a86e8;
}

.dependency-line.finish-to-finish {
    background-color: #7bc043;
}

.dependency-line.start-to-finish {
    background-color: #f7cb4d;
} */

/* Responsive adjustments */
/* @media (max-width: 768px) {
    .gantt-container {
        height: calc(100vh - 240px);
    }
    
    .gantt-legend {
        padding: 10px;
    }
    
    .legend-items {
        gap: 10px;
    }
} */

/* Improved Gantt Chart Styles */
/* .gantt-container {
    height: calc(100vh - 320px);
    min-height: 600px;
  } */
  
  /* .gantt-header {
    padding-left: 200px; 
  } */
  
  .timeline-header {
    display: flex;
    flex-direction: column;
  }
  
  .timeline-month {
    min-width: 30px; /* Ensure minimum width for month cells */
    height: 30px;
    text-align: center;
  }
  
  .timeline-day {
    min-width: 30px; /* Ensure minimum width for day cells */
    height: 25px;
    text-align: center;
  }
  
  .task-label {
    height: 40px; /* Increased height for better readability */
    font-size: 13px;
  }
  
  /* Make task bars bigger and more readable */
  rect.task-bar {
    height: 24px !important; /* Taller bars */
    rx: 4px;
    ry: 4px;
  }
  
  /* Improve dependency arrows */
  .dependency-line {
    stroke-width: 1.5px;
    stroke-dasharray: 4, 2; /* Dashed lines for dependencies */
  }
  
  .dependency-line.finish-to-start {
    stroke: #555;
  }
  
  .dependency-line.start-to-start {
    stroke: #4a86e8;
  }
  
  .dependency-line.finish-to-finish {
    stroke: #7bc043;
  }
  
  .dependency-line.start-to-finish {
    stroke: #f7cb4d;
  }
  /* Toggle Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
  }
  
  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 30px;
  }
  
  .toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  .toggle-switch input:checked + .toggle-slider {
    background-color: #4CAF50;
  }
  
  .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
  }
  
  /* ON/OFF Text */
  .toggle-slider .toggle-on,
  .toggle-slider .toggle-off {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
  }
  
  .toggle-slider .toggle-on {
    left: 8px;
    display: none;
  }
  
  .toggle-slider .toggle-off {
    right: 8px;
  }
  
  .toggle-switch input:checked + .toggle-slider .toggle-on {
    display: block;
  }
  
  .toggle-switch input:checked + .toggle-slider .toggle-off {
    display: none;
  }
  #feedbackModal {
    z-index: 1111;
  }

  /* add guidance */
  /* Add to your styles.css */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.guide-steps {
    margin-top: 20px;
}

.guide-step {
    margin-bottom: 30px;
    padding: 15px;
    border-left: 4px solid #007bff;
    background-color: #f8f9fa;
}

.guide-step h3 {
    margin-top: 0;
    color: #007bff;
}

.guide-step ul {
    margin-bottom: 15px;
}

.guide-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .content {
        width: calc(100% - 250px);
        box-sizing: border-box;
        padding: 1rem;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .top-nav {
        height: 64px;
    }
    
    .content {
        margin-top: 76px; /* Slightly more margin for iPad */
    }
}


/* Add this to your existing styles.css file */

/* iPad/tablet-specific fixes */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Fix header/content overlap */
    .dashboard-container {
        padding-top: 64px;
    }
    
    main.content {
        padding-top: 30px;
    }
    
    /* Add margin for section headers to prevent overlap with navigation */
    .settings-header, .manage-header {
        margin-top: 20px;
    }
    
    /* Ensure form elements have proper spacing */
    .form-group {
        margin-bottom: 30px;
    }
    
    /* Ensure sidebar doesn't overlap with content */
    .sidebar {
        z-index: 900;
    }
    
    /* Add extra space for content areas */
    .panel, .card, .form-container {
        margin-top: 15px;
    }
}

/* Additional iPad/tablet improvements */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Ensure content starts with proper spacing */
    .dashboard-container {
        padding-top: 64px;
    }
    
    /* Give section headings more breathing room */
    h1, h2, .settings-title, .manage-title {
        margin-top: 15px;
        margin-bottom: 20px;
    }
    
    /* Improve form element spacing */
    .form-group, .items-list-item {
        margin-bottom: 15px;
    }
    
    /* Ensure proper spacing for panels */
    .panel {
        margin-bottom: 20px;
        /* padding-top: 32px; */
    }
}
/* Fix overlapping elements on tablets and mobile devices */
@media (max-width: 1024px) {
    /* Ensure header stays on top */
    .top-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1050; /* Higher z-index to stay above everything */
        height: 64px;
    }
    
    /* Position sidebar properly */
    .sidebar {
        position: fixed;
        top: 64px; /* Start below header */
        left: 0;
        z-index: 1000; /* Lower than header but above content */
        height: calc(100vh - 64px);
        overflow-y: auto;
    }
    
    /* Ensure content has proper positioning and spacing */
    .content, main.content {
        margin-left: 250px; /* Match sidebar width */
        margin-top: 64px; /* Start below header */
        padding-top: 20px;
        width: calc(100% - 250px);
        z-index: 900; /* Lowest z-index */
    }
    
    /* Fix dashboard container */
    .dashboard-container {
        padding-top: 0; /* Remove padding as we're using margins instead */
        margin-top: 0;
    }
    
    /* Add space for section headers */
    .settings-header, .manage-header {
        margin-top: 15px;
    }
}

/* Additional fixes for smaller tablets */
@media (max-width: 768px) {
    /* Adjust for potentially smaller sidebar on mobile */
    .content, main.content {
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}

/* IPAD/TABLET FIXES WITH HIGHER SPECIFICITY */
@media (max-width: 1024px) {
    body.dashboard-view .top-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1100 !important; /* Even higher z-index */
        height: 64px !important;
    }
    
    body.dashboard-view .sidebar {
        position: fixed !important;
        top: 64px !important; 
        left: 0 !important;
        z-index: 1050 !important; 
        height: calc(100vh - 64px) !important;
        width: 250px !important;
        overflow-y: auto !important;
    }
    
    body.dashboard-view .dashboard-container {
        padding-top: 0 !important;
        margin-top: 64px !important;
    }
    
    body.dashboard-view .content,
    body.dashboard-view main.content {
        margin-left: 250px !important;
        margin-top: 30px !important; /* Give some extra space */
        padding-top: 20px !important;
        width: calc(100% - 250px) !important;
        z-index: 900 !important;
        box-sizing: border-box !important;
    }
    
    /* Force panel headers to have space */
    body.dashboard-view .settings-header, 
    body.dashboard-view .manage-header {
        margin-top: 20px !important;
        margin-bottom: 15px !important;
    }
    
    /* Force proper element spacing */
    body.dashboard-view .panel {
        margin-top: 15px !important;
    }
}

.guide-video {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.guide-video h3 {
    margin-bottom: 15px;
}

.guide-video video {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
    max-height: 400px;
}

/* Gantt Chart Styles */
/* .gantt-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
} */

/* .gantt-header {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 10;
} */

/* .gantt-months {
    display: flex;
    height: 30px;
} */

/* .gantt-month-header {
    flex-shrink: 0;
    height: 30px;
    padding: 6px 0;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid #ddd;
}

.gantt-days {
    display: flex;
    height: 24px;
} */

/* .gantt-day-header {
    flex-shrink: 0;
    height: 24px;
    padding: 2px 0;
    text-align: center;
    font-size: 0.8rem;
    border-right: 1px solid #eee;
}

.gantt-day-header.weekend {
    background-color: #f8f9fa;
} */

/* .gantt-day-header.today {
    background-color: #fffeee;
    font-weight: bold;
    color: #007bff;
}

.gantt-body {
    display: flex;
    overflow: auto;
    height: calc(100vh - 300px);
    min-height: 400px;
} */

/* .gantt-labels {
    min-width: 250px;
    flex-shrink: 0;
    border-right: 1px solid #ddd;
    background: #f8f9fa;
    z-index: 5;
} */
/* 
.gantt-label-header {
    display: flex;
    height: 30px;
    border-bottom: 1px solid #ddd;
    background-color: #eaedef;
    font-weight: bold;
}

.gantt-label-cell {
    padding: 5px 10px;
    display: flex;
    align-items: center;
} */


/* Status dots for label section */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.status-dot.pending {
    background-color: #ffd166;
}

.status-dot.in_progress {
    background-color: #06d6a0;
}

.status-dot.completed {
    background-color: #118ab2;
}

.status-dot.cancelled {
    background-color: #bababa;
}

.status-dot.overdue {
    background-color: #ef476f;
}

/* Progress indicator inside task bars */
.progress-indicator {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: 3px;
    left: 3px;
    border-radius: 3px;
}

/* Dependency lines */
.dependency-line {
    fill: none;
    stroke: #999;
    stroke-width: 1.5;
    stroke-dasharray: 4 2;
}

.dependency-line.finish-to-start {
    stroke: #4a7ebb;
    stroke-dasharray: none;
}

.dependency-line.start-to-start {
    stroke: #6c9e41;
    stroke-dasharray: 4 2;
}

.dependency-line.finish-to-finish {
    stroke: #e59a25;
    stroke-dasharray: 6 2;
}

.dependency-line.start-to-finish {
    stroke: #d35c5c;
    stroke-dasharray: 2 2;
}

/* Legend styles */

/* Filter section */
.filter-section {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-controls select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-counter {
    padding: 6px 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #666;
}



.search-box {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    padding-right: 30px;
}

.clear-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.clear-button:hover {
    color: #555;
}

/* Milestone styling */
/* .gantt-bar.milestone {
    width: 20px !important;
    height: 20px !important;
    border-radius: 2px;
    transform: rotate(45deg);
    top: 10px;
    background: linear-gradient(to bottom, #9c27b0, #7b1fa2);
    border: 1px solid #7b1fa2;
} */

/* Responsive styles */
/* @media (max-width: 768px) {
    .gantt-labels {
        min-width: 180px;
    }
    
    .gantt-body {
        height: calc(100vh - 250px);
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-container {
        max-width: 100%;
    }
} */