/* static/tasks/css/main.css - Consolidated with desktop.css values prioritized */

/* ====== Variables & Base Styles ====== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #1abc9c;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --danger-color: #dc3545;
    --danger-hover: #bd2130;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

/* ====== Layout & Containers ====== */
.container {
    max-width: 1600px;
    width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 20px;
}

.two-column-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Task layout grid adjustments - from desktop.css */
.task-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 420px;
    gap: 15px;
    margin-top: 4px;
}

/* Fix column sizing - from desktop.css */
.left-column, .middle-column, .right-column {
    min-width: 0;
    width: 100%;
}

/* ====== Header & Navigation ====== */
.app-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0;
    box-shadow: var(--shadow);
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.brand:hover {
    color: var(--accent-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.nav-main {
    display: flex;
    gap: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: var(--secondary-color);
}

.user-section {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 10px;
}

.username-display {
    color: white;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ====== Panels ====== */
/* Panel sizing fixes - from desktop.css */
.panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: none;
}

/* Fix panel header styling - from desktop.css */
.panel-header {
    background-color: #2c3e50;
    color: white;
    padding: 4px 14px;
    font-weight: 500;
    font-size: 16px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: none;
}

.panel-header:hover {
    background-color: #34495e;
}

/* Ensure toggle icon transitions are also instant - from desktop.css */
.toggle-icon {
    font-size: 12px;
    transition: none;
}

/* Remove all transitions from panel body - from desktop.css */
.panel-body {
    padding: 3px;
    padding-left: 9px;
    transition: none;
    max-height: none;
    opacity: 1;
    overflow: auto;
}

/* Use display:none for collapsed panels - from desktop.css */
.panel.collapsed .panel-body {
    display: none;
    padding: 0;
}

/* Badge for panels with notifications */
.notification-badge {
    background-color: var(--danger-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 8px;
}

/* Panel control buttons - from desktop.css */
.panel-control-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 10px 0 20px;
}

/* ====== Tables ====== */
/* Fix table styling - from desktop.css */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.main-table, .nested-table, .instruction-table {
    display: table;
    width: 100%;
}

.main-table th, .main-table td,
.nested-table th, .nested-table td,
.instruction-table th, .instruction-table td {
    word-break: break-word;
    max-width: 100%;
}

/* Ownership table improvements - from desktop.css */
.ownership-table {
    width: 100%;
}

.ownership-table td {
    padding: 5px;
    vertical-align: middle;
}

.ownership-table td:first-child {
    width: 40%;
}

/* ====== Forms & Inputs ====== */
/* Form element styling - from desktop.css */
select, input[type="text"], textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

select, input[type="password"], textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

/* Optimize the file selection dropdown - from desktop.css */
select[name="existing_file_id"] {
    height: auto;
    overflow-y: auto;
}

/* Multi-select improvements - from desktop.css */
select[multiple] {
    height: 120px;
}

/* Notes section - from desktop.css */
#id_note {
    width: 100%;
    resize: vertical;
    min-height: 100px;
}

/* ====== Buttons ====== */
/* Button styling - from desktop.css */
button, .btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover, .btn:hover {
    background-color: #2980b9;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bd2130;
}
.btn-group {
    display: inline-flex;
    gap: 8px;
    margin-left: 15px;
    align-items: center;
}

/* Success button */
.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

/* Info button */
.btn-info {
    background-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
}

/* ====== File Management ====== */
/* Fix file list styling - from desktop.css */
.panel[data-panel-id="files"] .panel-body ul {
    #max-height: 400px;
    overflow-y: auto;
    padding-left: 0;
    list-style-type: none;
}

.panel[data-panel-id="files"] .panel-body li {
    list-style-type: none;
}

.file-container {
    margin-bottom: 10px;
}

.folder-container {
    border-left: 3px solid #3498db;
    padding-left: 10px;
    margin-bottom: 15px;
}

/* ====== Page Elements ====== */
/* Page title - from desktop.css */
.page-title {
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 6px;
    margin-bottom: 16px;
}

.page-title h1 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0;
}

/* ====== Footer ====== */
.app-footer {
    margin-top: 40px;
    padding: 20px 0;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover {
    color: white;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 0.9em;
    text-align: center;
}

.header-container, .footer-container {
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

.header-container img, .footer-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ====== Responsive Breakpoints ====== */
/* Responsive breakpoints - exactly as in desktop.css */
@media (min-width: 1601px) {
    .container {
        max-width: 2000px;
    }

    .task-layout {
        grid-template-columns: 310px minmax(0, 1fr) 550px;
    }
}

@media (max-width: 1400px) {
    .task-layout {
        grid-template-columns: 310px minmax(0, 1fr) 380px;
    }
}

@media (max-width: 1200px) {
    .task-layout {
        grid-template-columns: 1fr 1fr;
    }

    .right-column .panel,
    .left-column .panel {
        order: 2;
    }

    .middle-column .panel:first-child {
        order: 1;
    }
}

@media (max-width: 768px) {
    .task-layout {
        grid-template-columns: 1fr;
    }

    .panel-control-buttons {
        justify-content: center;
    }

    .two-column-container {
        grid-template-columns: 1fr;
    }

    .menu-toggle {
        display: block;
    }

    .nav-main {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        gap: 0;
    }

    .nav-main.active {
        max-height: 300px;
        box-shadow: var(--shadow);
    }

    .nav-link {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 0;
    }

    .user-section {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .mobile-hidden {
        display: none;
    }
}
/* Add to your static/tasks/css/main.css file (or create a new CSS file and include it) */

/* Flexible page layout that keeps footer at the bottom */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto; /* This is the key change */
    padding: 20px;
}

/* For very short content pages */
.min-content-height {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Keep some spacing at the bottom of the content */
main > *:last-child {
    margin-bottom: 40px;
}

.app-footer {
    flex-shrink: 0; /* Add this */
    margin-top: 0; /* Change from margin-top: auto */
    padding: 20px 0;
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
}

/* Media query adjustments */
@media (min-height: 768px) {
    /* On taller screens, add more padding to content */
    main {
        min-height: 400px;
    }

    main > *:last-child {
        margin-bottom: 60px;
    }
}

@media (min-height: 1024px) {
    /* On very tall screens, add even more padding */
    main {
        min-height: 500px;
    }

    main > *:last-child {
        margin-bottom: 80px;
    }
}
/* Task list specific styling */
.task-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Task list items styling */
.task-item {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.task-item:hover {
    background-color: #f8f9fa;
}

.task-status-mark {
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

.task-link {
    display: inline-block;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.task-link:hover {
    text-decoration: underline;
}
/* Updated Page Title styling */
.page-title {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    margin-bottom: 16px;
}

.page-title-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-title-heading {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    flex: 1;
}

.page-title-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
    .page-title-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title-buttons {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-end;
    }
}
h1 {
    margin: 3px;
}
h2 {
    margin: 3px;
}
h3 {
    margin: 3px;
}
ul{
    margin: 3px;
    padding-right: 10px;
}
li{
    margin: 3px;
}
p{
    margin: 3px;
}

/* Notes Section - Expandable functionality */
.notes-section {
    position: relative;
    transition: all 0.3s ease;
}

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

.notes-section.expanded {
    position: fixed;
    top: 10%;
    left: 45%;
    width: 50%;
    height: max-content;
    max-height: 80vh;
    background-color: white;
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.notes-section.expanded .notes-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.notes-section.expanded .expand-notes-btn {
    background-color: #dc3545;
}

.notes-section.expanded .expand-notes-btn i:before {
    content: "\f066"; /* fa-compress icon */
}

.notes-section.expanded .note-form textarea {
    min-height: 200px;
}

.notes-section.expanded .notes-list {
    max-height: calc(100vh - 350px);
    overflow-y: auto;
}

/* Improve notes list appearance */
.notes-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.notes-list li {
    padding: 10px;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

/* Notes header styling */
.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Info icon and tooltip styles */
.info-tooltip-container {
    position: relative;
    display: inline-block;
}

.info-icon {
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
}

.info-icon:hover {
    color: #495057;
    background-color: #f0f0f0;
}

.keyboard-shortcuts-tooltip {
    visibility: hidden;
    position: absolute;
    right: 0;
    top: 100%;
    width: 280px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s;
}

.info-tooltip-container:hover .keyboard-shortcuts-tooltip {
    visibility: visible;
    opacity: 1;
}

.keyboard-shortcuts-tooltip h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: bold;
}

.keyboard-shortcuts-tooltip ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.keyboard-shortcuts-tooltip li {
    margin-bottom: 6px;
    font-size: 13px;
}

.keyboard-shortcuts-tooltip kbd {
    display: inline-block;
    padding: 2px 5px;
    font-size: 11px;
    line-height: 1;
    color: #444;
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2);
    margin: 0 2px;
}

/* Link styling */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

a:active {
    color: #2980b9; /* Slightly darker than secondary color for active state */
}

a:visited {
    color: #8e44ad; /* A complementary purple that works with the color scheme */
}

/* Special case for links in dark backgrounds (like headers and footers) */
.app-header a, .app-footer a, .panel-header a {
    color: white;
}

.app-header a:hover, .app-footer a:hover, .panel-header a:hover {
    color: var(--accent-color);
}

/* Button links should keep their button styling */
a.btn {
    color: white;
    text-decoration: none;
}

a.btn:hover {
    text-decoration: none;
}

/* Add these styles to your existing CSS file */
.edit-details-link {
    margin-left: 8px;
    color: #666;
    text-decoration: none;
    display: inline-block;
}

.edit-details-link:hover {
    color: #333;
}

.edit-icon {
    font-size: 14px;
}

/* Styles for the edit task details form */
.edit-task-details-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.ask-ai-section {
    margin-bottom: 20px;
}

.ai-question-input {
    width: 100%;
    min-height: 80px;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ai-question-submit {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.ai-responses {
    margin-top: 20px;
}

.ai-response {
    margin-bottom: 15px;
}

/* We don't need these styles for padding, border, etc. since they're inherited from .panel */

.ai-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Position the toggle icon to the right of the username */
.ai-response-header span:nth-child(1) {
    flex-grow: 1;
    text-align: left;
}

.ai-response-header .toggle-icon {
    margin: 0 10px;
}

.ai-question {
    font-weight: bold;
    margin-bottom: 10px;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.ai-answer {
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: #e6f7ff;
    border-left: 3px solid #1890ff;
    border-radius: 0 4px 4px 0;
}

.ai-timestamp {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
}

.no-responses {
    color: #777;
    font-style: italic;
}
.btn-link {
    background: none;
    border: none;
    color: #dc3545; /* Red color for delete actions */
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    font-size: 1rem;
}

.btn-link:hover {
    color: #c82333; /* Darker red on hover */
    text-decoration: none;
}

.delete-ai-btn {
    margin-left: 5px;
    opacity: 0.8;
    line-height: 1;
}

.delete-ai-btn:hover {
    opacity: 1;
}

.delete-ai-form {
    display: inline;
    margin: 0;
    padding: 0;
}

/* Update the messages section in your main.css */
.messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
    width: 100%;
    padding: 0;
    margin: 0;
    pointer-events: none; /* Allows clicking through the container */
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto; /* Re-enable pointer events for alerts */
    animation: slideInRight 0.5s ease forwards, fadeOut 0.5s ease 4.5s forwards;
    transform-origin: right;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.alert .close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.5;
    color: inherit;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert .close:hover {
    opacity: 1;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    .messages {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

/* Profile form table styling */
/* Assigned audits table styling */
.table-profile thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 12px;
    font-weight: 600;
    color: #495057;
    text-align: left; /* Ensure headers are left-aligned */
}

.table-profile tbody td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
    text-align: left; /* Ensure cells are left-aligned */
}

.table-profile input {
    width: 100%;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.table-profile input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* New style for status count badges */
.status-count-badge {
    display: inline-flex; /* Use flexbox for centering content */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    width: 55px; /* Fixed width to accommodate content like "999 •" */
    flex-shrink: 0; /* Prevent badges from shrinking */
    text-align: center; /* Ensures content is centered */
    white-space: nowrap; /* Prevents text from wrapping inside the badge */
    overflow: hidden; /* Hides any overflowing content */
    text-overflow: clip; /* Ensures text is clipped if it overflows */
}

/* New style for status count badges */
.status-count-badge {
    display: inline-flex; /* Use flexbox for centering content */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    width: 55px; /* Fixed width to accommodate content like "999 •" */
    flex-shrink: 0; /* Prevent badges from shrinking */
    text-align: center; /* Ensures content is centered */
    white-space: nowrap; /* Prevents text from wrapping inside the badge */
    overflow: hidden; /* Hides any overflowing content */
    text-overflow: clip; /* Ensures text is clipped if it overflows */
}

/* Class to prevent color change on hover/active */
.no-color-change {
    color: inherit; /* Inherit color from parent */
    text-decoration: none; /* Ensure no underline */
}

.no-color-change:hover,
.no-color-change:focus,
.no-color-change:active {
    color: inherit; /* Keep color the same on hover, focus, and active */
    text-decoration: underline; /* Keep no underline on hover, focus, and active */
    background-color: transparent; /* Prevent background changes if any */
}

/* Class to prevent color change on hover/active */
.no-color-change {
    color: inherit; /* Inherit color from parent */
    text-decoration: none; /* Ensure no underline */
}

.no-color-change:hover,
.no-color-change:focus,
.no-color-change:active {
    color: inherit; /* Keep color the same on hover, focus, and active */
    text-decoration: underline; /* Keep no underline on hover, focus, and active */
    background-color: transparent; /* Prevent background changes if any */
}

/* New style for the task information banner */
.task-banner {
    background-color: #e0f7fa; /* Light cyan background */
    color: #006064; /* Darker cyan text */
    padding: 12px 20px;
    margin: 10px 0 20px; /* Adjusted margin for better spacing */
    border-radius: var(--border-radius);
    border: 1px solid #b2ebf2; /* Light blue border */
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.task-banner strong {
    font-weight: 600;
    margin-right: 8px; /* Space between "Your current tasks:" and the badges */
    color: var(--primary-color); /* Use primary color for strong text */
}

.task-banner .badge {
    background-color: var(--secondary-color); /* Use secondary color for badges */
    color: white;
    padding: 5px 10px;
    border-radius: 20px; /* More rounded badges */
    font-size: 0.9em;
    min-width: 30px; /* Ensure badges have a minimum width */
    text-align: center;
}

/* Specific styling for the span containing role and count */
.task-banner .task-item-summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Responsive adjustments for the task banner */
@media (max-width: 768px) {
    .task-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .task-banner strong {
        margin-right: 0;
        margin-bottom: 5px;
    }
}
/* ... existing code ... */

/* New layout for audit selection page */
.audit-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(280px, 40ch) 1fr; /* Left column ~40 characters wide, right column fills rest */
    gap: 20px; /* Space between columns */
    margin-top: 20px; /* Space from elements above */
}

@media (max-width: 768px) {
    .audit-dashboard-layout {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

/* Styles for the columns (optional, mainly for organization) */
.my-tasks-column {
    /* Add specific styles for the 'My tasks' column here if needed */
}

.all-tasks-column {
    /* Add specific styles for the 'All tasks' column here if needed */
}