/* Smaller buttons for project actions */
.project-actions button {
    padding: 0.13em 0.32em;
    font-size: 0.92em;
    border-radius: 3px;
}
.category-badge {
    display: inline-block;
    padding: 0.2em 0.7em;
    border-radius: 1em;
    font-size: 0.98em;
    font-weight: 500;
    background: #f3f3f3;
    color: #333;
    margin-right: 0.2em;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

.task-actions {
    display: flex;
    gap: 0.3em;
}

.task-action-btn {
    background: none;
    border: none;
    padding: 0.25em 0.4em;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    color: #2a3a4b;
    transition: background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
}

.task-action-btn:hover {
    background: #e3f2fd;
    color: #185bb5;
}

.task-action-btn svg {
    width: 1.1em;
    height: 1.1em;
    pointer-events: none;
}

.notes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

#confirm-modal.notes-modal {
    z-index: 2000;
}

.notes-modal.active {
    display: flex;
}

.notes-content {
    background: #fff;
    margin-top: 30px;
    padding: 2.2em 2.2em .5em 2.2em;
    border-radius: 12px;
    min-width: 340px;
    max-width: 820px;
    width: 97%;
    box-sizing: border-box;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.13);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.notes-content label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    margin-bottom: 0.5em;
    gap: 0.2em;
}

.notes-content input[type="text"],
.notes-content input[type="date"],
.notes-content input[type="time"] {
    padding: 0.5em;
    border: 1px solid #cfd8dc;
    border-radius: 4px;
    font-size: 1em;
    margin-top: 0.1em;
}

.notes-content button {
    margin-top: 0.2em;
}

.add-task-due-row {
    display: flex;
    gap: 1em;
    align-items: flex-end;
}

.add-task-due-row label {
    flex: 1 1 0;
    margin-bottom: 0;
}

.notes-list {
    margin-bottom: 1em;
}

.note-item {
    border-bottom: 1px solid #eee;
    padding: 0.5em 0;
}

.note-date {
    color: #888;
    font-size: 0.9em;
}

.task-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
}

.task-table th,
.task-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.task-table th {
    background: #f0f0f0;
}

.task-type {
    font-weight: bold;
    color: #0074d9;
}

.task-file {
    color: #555;
    font-size: 0.95em;
}

.task-code {
    font-family: monospace;
    background: #f8f8f8;
    padding: 2px 6px;
    border-radius: 3px;
}

.task-title {
    font-size: 1.1em;
}

.details-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em 1em;
    align-items: flex-start;
}

.details-item {
    white-space: nowrap;
    margin-bottom: 2px;
}

.details-key {
    font-weight: bold;
}

.details-val {
    color: #333;
}

/* Confirm modal specific styles */
#confirm-modal .notes-content {
    max-width: 340px;
    text-align: center;
}

#confirm-modal-message {
    margin-bottom: 1.2em;
    font-size: 1.08em;
}

/* Button containers */
.button-row {
    display: flex;
    gap: 0.7em;
    justify-content: center;
}

.button-row-left {
    display: flex;
    gap: 0.7em;
    margin-top: 0.7em;
}

.button-row-top {
    display: flex;
    gap: 0.7em;
    margin-top: 1.2em;
}

/* Cancel button style */
.btn-cancel {
    background: #eee;
    color: #333;
}

/* Spacing utilities */
.mb-1 {
    margin-bottom: 1em;
}

.mt-07 {
    margin-top: 0.7em;
}

/* Filter controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 1.5em;
    margin-bottom: 1em;
}

/* Modal headers */
.modal-header {
    margin-top: 0;
    margin-bottom: 0.7em;
}

/* Full width utilities */
.full-width {
    width: 100%;
}

.full-width-block {
    width: 100%;
    display: block;
}

/* Project row */
.add-task-project-row,
.edit-task-project-row {
    margin-top: 0.7em;
}

/* Error message */
.error-message {
    color: #c00;
    margin-top: 0.5em;
}

/* Category/Project modal content sizing */
.modal-medium {
    min-width: 340px;
}

/* Input field sizing */
.input-medium {
    width: 60%;
}

.input-color {
    width: 2.5em;
    vertical-align: middle;
}

/* Top section margin */
.section-top {
 display: flex;
    margin-top: 1em;
    gap: 1.5em;
}
