body {
    overflow-y: scroll;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 90vw;
    padding: 1rem;
}

.goal-table th,
.goal-table td {
    vertical-align: middle;
}

.goal-heading,
.goal-card-header {
    background-color: transparent;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.goal-card {
    border: 1px solid #dee2e6;
    border-left: 3px solid #007bff;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
    background-color: #ffffff;
    overflow: hidden;
}

.goal-card-header {
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 1rem;
}

.goal-card-header:hover {
    background-color: #e9ecef;
}

.collapse-icon {
    font-size: 1rem;
    transition: transform 0.2s ease;
    color: #e9ecef;
}

.metrics-header,
.metrics-list .kpi {
    display: flex;
    align-items: center;
    font-weight: 600;
    padding: 0.4rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.metrics-header {
    font-size: 0.8rem;
}

.metrics-header .header-item,
.metrics-list .kpi .item {
    flex: 1;
    text-align: center;
}

.metrics-header .header-item:first-child,
.metrics-list .kpi .item:first-child {
    text-align: left;
    padding-left: 10px;
    flex: 5;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.metrics-list .kpi {
    background-color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: normal;
}

.metrics-list .kpi:hover {
    background-color: #f8f9fa;
    color: #007bff;
    font-weight: bold;
}

.metrics-list .kpi.active {
    color: #007bff;
    font-weight: bold;
}

.chart-container {
    padding: 0.5rem;
    border-top: 1px solid #dee2e6;
    background-color: #f9f9f9;
    height: 400px;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.goal-names-container {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    padding: 0 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #000000;
}

.goal-name {
    text-align: center;
    flex-grow: 1;
}

.comment-box {
    border-left: 4px solid #6c757d;
    padding-left: 1rem;
    margin-bottom: 0.75rem;
    background-color: #ffffff;
    border-radius: 0.25rem;
}

.comment-timestamp {
    font-size: 0.85em;
    color: #6c757d;
}

@media (max-width: 768px) {
    .metrics-header .header-item,
    .metrics-list .kpi .item {
        font-size: 0.8rem;
    }

    .chart-container {
        height: 300px;
    }
}

.action-buttons button {
    margin-right: 0.5rem;
}

.no-goals-message {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

#ygt_addGoalForm .card {
    border: 1px solid #dee2e6;
    border-radius: 0.4rem;
    background-color: #ffffff;
    overflow: hidden;
}

#ygt_newGoalMetrics, #ygt_editGoalMetrics {
    max-width: 200px;
}

#ygt_addGoalForm .card-body {
    padding: 1rem;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-body {
    padding: 1rem;
}

.modal-footer {
    padding: 1rem;
}

.variable-list {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;

    .variable-row {
        display: flex;
        justify-content: space-between;
    }

    .header-column {
        font-weight: bold;
        flex: 1;
        padding: 10px;
        color: #495057;
        background-color: #e9ecef;
        border-color: #dee2e6;
    }

    .data-column {
        flex: 1;
        padding: 10px;
        border-color: #dee2e6;
    }

    .data-column:first-child {
        flex: 7;
    }

    .data-column input {
        max-width: 100px;
        border-radius: 5px;
        border: 1px solid #ced4da;
        padding: 5px;
        font-size: 14px;
    }

    .data-rows .variable-row .data-column-extended {
        flex: 5;
        text-align: center;
        font-size: 14px;
    }

    .delete-btn {
        color: #dc3545;
        cursor: pointer;
    }
}

/* Task Form Section Styles */
.task-form-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

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

.task-form-section .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
}

.task-form-section .form-select {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.task-form-section .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

.form-tasks-list {
    max-height: 200px;
    overflow-y: auto;
}

.form-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.form-task-item .task-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-task-item .task-title {
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.form-task-item .task-priority {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: #ffffff;
}

.form-task-item .task-actions {
    display: flex;
    gap: 0.25rem;
}

.form-task-item .btn {
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
}

/* Priority Badge Colors for Form */
.form-task-item .task-priority.priority-low {
    background-color: #0dcaf0;
}

.form-task-item .task-priority.priority-medium {
    background-color: #ffc107;
}

.form-task-item .task-priority.priority-high {
    background-color: #fd7e14;
}

.form-task-item .task-priority.priority-urgent {
    background-color: #dc3545;
}

/* Task Box Styles */
.task-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.task-description {
    color: #666;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-actions {
    display: flex;
    gap: 8px;
}

/* Form Task Styles */
.task-form-section {
    margin-bottom: 20px;
}

.form-tasks-list {
    margin-top: 10px;
}

.form-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #e9ecef;
}

.form-task-item .task-title {
    font-weight: 500;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Collapsible Task Styles */
.task-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #dee2e6;
}

.task-header:hover {
    background-color: #e9ecef;
}

.task-header.collapsed {
    border-bottom: none;
}

.task-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin: 0;
}

.task-collapse-icon {
    color: #6c757d;
    transition: transform 0.2s ease;
}

.task-content {
    padding: 15px;
}

.task-description {
    color: #666;
    line-height: 1.5;
}

.task-comments-section {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
}

.task-comments-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.task-comments-container {
    max-height: 200px;
    overflow-y: auto;
}

/* Responsive adjustments for collapsible tasks */
@media (max-width: 768px) {
    .task-header {
        padding: 12px;
    }
    
    .task-content {
        padding: 12px;
    }
    
    .task-title {
        font-size: 14px;
    }
}