#objective-counter {
    font-weight: 600;
    color: orange;
}

.objective_block {
    display: flex;
    align-items: center;
    column-gap: 5px;
    flex-wrap: wrap;
}

.objective_prompt_block {
    display: flex;
    align-items: baseline;
    column-gap: 5px;
    flex-wrap: wrap;
}

.objective_block_control {
    align-items: baseline;
}

.objective_block_control small,
.objective_block_control label {
    width: max-content;
}

.objective-task-button {
    margin: 0;
    outline: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.7;
    align-items: center;
    justify-content: center;

}

.objective-task-button:hover {
    opacity: 1;
}

[id^=objective-task-delete-] {
    color: #da3f3f;
}

.objective-task {
    border-style: solid;
    border-width: 0;
    border-color: transparent;
    transition: border-width 0.2s, border-color 0.2s;
    padding: 2px;
    border-radius: 3px;
}

/* Add a more visible highlight style for the current task */
.objective-task-highlight {
    border-style: solid !important;
    border-width: 2px !important;
    border-color: #ffcc00 !important;
    background-color: rgba(255, 204, 0, 0.1);
    box-shadow: 0 0 3px rgba(255, 204, 0, 0.5);
}

#objective-tasks span {
    margin: unset;
    margin-bottom: 5px !important;
}

#objectiveExtensionPopout {
    top: unset;
}

#objectiveExtensionPopout #objectiveExtensionDrawerContents {
    margin-top: 20px;
}

.objective_prompt_modal textarea {
    max-height: 50vh;
    max-height: 50dvh;
    resize: vertical;
}

/* Progress bar styles */
.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #444;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar {
    height: 100%;
    background-color: #4c7bd9;
    transition: width 0.3s ease;
}

/* Statistics styles */
.objective_statistics_modal h4 {
    margin-top: 10px;
    margin-bottom: 5px;
    border-bottom: 1px solid #444;
}

.objective_history_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.objective_history_item {
    background-color: rgba(50, 50, 50, 0.5);
    border-radius: 5px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-left: 3px solid #555;
}

.objective_history_task {
    font-weight: bold;
}

.objective_history_objective {
    font-size: 0.9em;
    opacity: 0.8;
}

.objective_history_date {
    font-size: 0.8em;
    opacity: 0.7;
}

.objective_completion_history {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

/* Statistics window styles */
.stats-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #444;
    color: inherit;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-section {
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.stats-section-header {
    margin-top: 0 !important;
    padding-bottom: 8px;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #555 !important;
    color: inherit;
    font-size: 1.1em;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 15px;
}

.stats-label {
    color: #ccc;
    font-size: 0.95em;
}

.stats-value {
    font-weight: bold;
    text-align: right;
    color: #fff;
}

.completion-history-section {
    margin-top: 20px;
}

/* Margin utility classes */
.margin0 {
    margin: 0;
}

.marginTop10 {
    margin-top: 10px;
}

.marginTop20 {
    margin-top: 20px;
}

.marginBottom10 {
    margin-bottom: 10px;
}

.marginBottom20 {
    margin-bottom: 20px;
}

/* Layout utility classes */
.justifyBetween {
    justify-content: space-between;
}

.objective-task-item {
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
    border-radius: 5px;
}

.objective-task-item:hover {
    background-color: rgba(80, 80, 80, 0.3);
}

.objective-task-item .fa-grip-vertical {
    cursor: grab;
    opacity: 0.5;
}

.objective-task-item:hover .fa-grip-vertical {
    opacity: 1;
}

.ui-sortable-helper {
    background-color: rgba(100, 100, 100, 0.7);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    cursor: grabbing;
}

.ui-sortable-placeholder {
    visibility: visible !important;
    background-color: rgba(60, 60, 60, 0.3);
    border: 1px dashed #555;
    height: 35px;
    border-radius: 5px;
    margin-bottom: 8px;
}

.task-duration-progress-complete {
    color: #33cc33;
    font-weight: bold;
}

/* Completed duration */
.objective-task-duration-complete {
    color: #33cc33 !important;
}

/* Duration set but not completed */
.objective-task-duration-pending {
    color: #ffcc00 !important;
}

/* Duration modal styling */
.objective_duration_modal h4 {
    margin-top: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
}

.objective_duration_modal .menu_button {
    margin-right: 5px;
}