/* taskr/style.css - Complete Stylesheet with Width Fixes */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Authentication Loader */
.auth-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-loader-content {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.auth-loader h1 {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.auth-loader p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.auth-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.header {
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo Container */
.logo-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #3b82f6;
    margin: 0;
    letter-spacing: -0.5px;
    cursor: pointer;
    font-style: italic;
    font-family: 'Times New Roman', Georgia, serif;
}

.tagline {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.board-name-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 2px solid #e2e8f0;
}

.board-name-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    color: #64748b;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-view-toggle {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-view-toggle {
    background: #10b981;
    color: white;
}

.btn-view-toggle:hover {
    background: #059669;
}

.btn-view-toggle.active-view {
    background: #0e7c54;
    font-weight: 600;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0;
    width: 30px;
    height: 30px;
}

.btn-close:hover {
    color: #1e293b;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Main Container */
.main-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    flex: 1;
}

.actions-bar {
    margin-bottom: 1.5rem;
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    width: 100%;
}

.kanban-column {
    min-width: 300px;
    flex: 1;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.column-header h3 {
    font-size: 1.1rem;
    color: #0f172a;
}

.task-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.column-content {
    min-height: 200px;
    flex: 1;
}

/* Task Cards */
.task-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.task-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.task-card.dragging {
    opacity: 0.5;
}

.task-card.drag-over {
    border: 2px dashed #3b82f6;
}

.task-title {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.task-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.task-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.task-assigned {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Single Column View */
.single-column-container {
    display: flex;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

.column-sidebar {
    width: 250px;
    background: #f8f9fa;
    border-right: 1px solid #e2e8f0;
    padding: 1.5rem;
    flex-shrink: 0;
}

.column-sidebar h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.column-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.column-nav-item {
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s;
}

.column-nav-item:hover {
    background: #e2e8f0;
}

.column-nav-item.active {
    background: #3b82f6;
    color: white;
}

.column-main {
    flex: 1;
    padding: 1.5rem 2rem;
    width: 100%;
}

.column-header-single {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.column-header-single h2 {
    font-size: 1.75rem;
    color: #0f172a;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.task-card-single {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.25rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.task-card-single:hover {
    border-color: #3b82f6;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1);
}

.task-card-single .task-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.task-card-single .task-description {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    white-space: pre-wrap;
}

.task-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #0f172a;
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #475569;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group input[readonly] {
    background: #f1f5f9;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Drag and Drop Visual States */
.column-content.drag-over {
    background: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3b82f6;
    border-radius: 6px;
}

.column-content.drag-blur {
    opacity: 0.4;
}

/* Boards Page */
.boards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.boards-header h2 {
    font-size: 1.75rem;
    color: #0f172a;
}

.boards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.board-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.board-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.board-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.board-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.board-card-header h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0;
}

.board-members {
    font-size: 0.9rem;
    font-weight: 600;
}

.board-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.board-meta {
    font-size: 0.85rem;
    color: #64748b;
}

.board-stats {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 600;
    margin-top: 0.5rem;
}

.board-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Form Pages */
.form-page {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.form-page-header h2 {
    font-size: 1.75rem;
    color: #0f172a;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.form-note {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

.form-note p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fee;
    color: #c81e1e;
    border: 1px solid #fcc;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Columns List */
.columns-list {
    margin-bottom: 2rem;
}

.columns-list h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.column-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-item-name {
    font-weight: 600;
    color: #0f172a;
}

.column-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Add Column Form */
.add-column-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    max-width: 800px;
}

.add-column-form h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.color-select {
    appearance: none;
}

.color-select option {
    padding: 0.5rem;
}

/* Add Member Section */
.add-member-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    max-width: 800px;
}

.add-member-section h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.add-member-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-inline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.form-control-inline {
    flex: 1;
    padding: 0.625rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-control-inline:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Members List */
.members-list {
    margin-top: 2rem;
}

.members-list h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.members-table thead {
    background: #f8f9fa;
}

.members-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.members-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.members-table tbody tr:hover {
    background: #f8f9fa;
}

.members-table tbody tr:last-child td {
    border-bottom: none;
}

.role-select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    background: white;
}

.role-select:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.text-muted {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 0;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: right;
}

.footer-text {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 400;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.65rem;
    }
    
    .board-name-header {
        margin-left: 1rem;
        padding-left: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .board-name-header h2 {
        font-size: 1rem;
    }
    
    .main-container {
        padding: 1rem;
    }
    
    .kanban-board {
        flex-direction: column;
        overflow-x: visible;
    }
    
    .kanban-column {
        min-width: 100%;
        width: 100%;
    }
    
    /* Horizontal scrolling for cards in mobile */
    .column-content {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
        min-height: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .task-card {
        flex-shrink: 0;
        width: calc(40% - 0.375rem);
        min-height: 160px;
        max-height: 160px;
        margin-bottom: 0;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
    }
    
    .task-card .task-title {
        flex-shrink: 0;
        margin-bottom: 0.5rem;
        overflow: hidden;
        font-size: 0.85rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
    }
    
    .task-card .task-description {
        flex: 1;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        margin-bottom: 0.5rem;
    }
    
    .task-card .task-date {
        flex-shrink: 0;
        margin-top: auto;
    }
    
    /* Hide scrollbar but keep functionality */
    .column-content::-webkit-scrollbar {
        height: 4px;
    }
    
    .column-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }
    
    .column-content::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
    
    .boards-grid {
        grid-template-columns: 1fr;
    }
    
    .single-column-container {
        flex-direction: column;
    }
    
    .column-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .column-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .column-nav-item {
        white-space: nowrap;
    }
    
    .column-main {
        padding: 1rem;
    }
    
    .column-header-single {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .form-page {
        padding: 1.5rem;
    }
    
    .form-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .header-actions button {
        width: 100%;
    }
    
    .boards-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .boards-header button {
        width: 100%;
    }
    
    .columns-grid {
        grid-template-columns: 1fr;
    }
    
    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-inline button {
        width: 100%;
    }
    
    .members-table {
        font-size: 0.85rem;
    }
    
    .members-table th,
    .members-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .members-table th:nth-child(4),
    .members-table td:nth-child(4) {
        display: none;
    }
    
    .board-card-actions {
        flex-direction: column;
    }
    
    .board-card-actions button {
        width: 100%;
    }
    
    .footer-content {
        text-align: center;
        padding: 0 1rem;
    }
}

/* Tablet - Responsive boards grid */
@media (min-width: 769px) and (max-width: 1024px) {
    .boards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .header-content {
        padding: 0 1.5rem;
    }
    
    .main-container {
        padding: 1.5rem;
    }
    
    .footer-content {
        padding: 0 1.5rem;
    }
}

/* Desktop - Full width utilization */
@media (min-width: 1025px) {
    .boards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* MOM-Specific Styles - Add these to your existing style.css */

/* MOM Pages Header */
.moms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.moms-header h2 {
    font-size: 1.75rem;
    color: #0f172a;
}

/* MOM Cards Grid */
.moms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mom-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.mom-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.mom-card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.mom-card-header h3 {
    font-size: 1.15rem;
    color: #0f172a;
    margin: 0;
}

.mom-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mom-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.mom-preview {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.mom-preview-line {
    font-size: 0.9rem;
    color: #475569;
    margin: 0.25rem 0;
    line-height: 1.5;
}

.mom-preview-more {
    color: #94a3b8;
    font-style: italic;
    margin: 0.5rem 0 0 0;
}

.mom-stats {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 600;
    margin-top: 0.5rem;
}

.mom-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* MOM Details Modal */
.mom-details {
    padding: 0.5rem 0;
}

.mom-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    max-height: 300px;
    overflow-y: auto;
}

.mom-content p {
    margin: 0.5rem 0;
    color: #475569;
    line-height: 1.6;
}

.mom-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mom-task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.task-bullet {
    color: #3b82f6;
    font-size: 1.2rem;
    font-weight: bold;
}

.task-text {
    flex: 1;
    color: #0f172a;
    font-weight: 500;
}

.task-arrow {
    color: #94a3b8;
}

.task-assignee {
    color: #3b82f6;
    font-weight: 600;
}

/* Source Field in Task Cards */
.task-source {
    font-size: 0.75rem;
    color: #3b82f6;
    margin-top: 0.25rem;
    cursor: pointer;
    text-decoration: underline;
}

.task-source:hover {
    color: #2563eb;
}

.task-source-link {
    color: #3b82f6;
    cursor: pointer;
    text-decoration: underline;
}

.task-source-link:hover {
    color: #2563eb;
}

/* @Mention Autocomplete Dropdown */
/* MOM Script - Mention Dropdown */
.mention-dropdown {
    position: absolute;  /* Must be absolute, NOT fixed */
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 180px;
    overflow-y: auto;
    z-index: 10000;
    min-width: 220px;
    max-width: 280px;
}

.mention-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: background 0.15s;
}

.mention-item:hover,
.mention-item.active {
    background: #f1f5f9;
}

.mention-item strong {
    color: #0f172a;
    font-size: 0.95rem;
}

/* Preview Table */
.preview-info {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.preview-title {
    color: #3b82f6;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.5rem 0 0 0;
}

.preview-table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.preview-table thead {
    background: #f8f9fa;
}

.preview-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
}

.preview-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
}

.preview-table tbody tr:hover {
    background: #f8f9fa;
}

.preview-table tbody tr:last-child td {
    border-bottom: none;
}

.preview-note {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    margin-top: 1.5rem;
}

.preview-note p {
    margin: 0 0 0.5rem 0;
    color: #856404;
    font-weight: 600;
}

.preview-note ul {
    color: #856404;
}

/* Mobile Responsiveness for MOM Pages */
@media (max-width: 768px) {
    .moms-grid {
        grid-template-columns: 1fr;
    }
    
    .moms-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .moms-header button {
        width: 100%;
    }
    
    .mom-card {
        padding: 1.25rem;
    }
    
    .mention-dropdown {
        min-width: 200px;
        max-width: 90vw;
    }
    
    .preview-table {
        font-size: 0.85rem;
    }
    
    .preview-table th,
    .preview-table td {
        padding: 0.5rem;
    }
    
    .preview-table th:last-child,
    .preview-table td:last-child {
        display: none;
    }
}

/* Tablet - 2 MOMs per row */
@media (min-width: 769px) and (max-width: 1024px) {
    .moms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOM Script - Mention Dropdown */
.mention-dropdown {
    position: fixed;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10000;
    min-width: 250px;
}

.mention-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.mention-item:last-child {
    border-bottom: none;
}

.mention-item:hover,
.mention-item.active {
    background: #f8f9fa;
}

/* Preview Modal Styles */
.preview-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.preview-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3b82f6;
    margin-top: 0.5rem;
}

.preview-table-container {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.preview-table thead {
    background: #f8f9fa;
}

.preview-table th,
.preview-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.preview-table th {
    font-weight: 600;
    color: #475569;
}

.preview-table tbody tr:hover {
    background: #f8f9fa;
}

.preview-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 6px;
    color: #856404;
}