/* ============================================================
   EISENHOWER MATRIX — Complete Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
.em-container {
    --em-do-first: #e74c3c;
    --em-do-first-bg: rgba(231, 76, 60, 0.12);
    --em-schedule: #f1c40f;
    --em-schedule-bg: rgba(241, 196, 15, 0.12);
    --em-delegate: #3498db;
    --em-delegate-bg: rgba(52, 152, 219, 0.12);
    --em-eliminate: #95a5a6;
    --em-eliminate-bg: rgba(149, 165, 166, 0.12);
    --em-purple: #a855f7;
    --em-purple-deep: #6c3fc5;
    --em-radius: 16px;
    --em-radius-sm: 10px;
    --em-transition: all 0.3s ease;
    --em-font-head: 'Outfit', sans-serif;
    --em-font-mono: 'Space Mono', monospace;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.em-container {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.em-container .tool-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    position: relative;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.em-container .tool-wrapper {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================================
   CONTROLS PANEL - HORIZONTAL TOP
   ============================================================ */
.em-controls-horizontal {
    background: var(--panel-bg);
    border-bottom: 1px solid var(--panel-border);
    padding: 16px 24px;
    flex-shrink: 0;
    z-index: 10;
}

.em-controls-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header */
.em-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.em-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.em-title {
    font-family: var(--em-font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.3px;
}

.em-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.em-header-right {
    display: flex;
    align-items: center;
}

/* Legend Horizontal */
.em-legend-horizontal {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    opacity: 0.7;
}

.em-legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 2px;
}

.em-legend-dot.em-do-first { background: var(--em-do-first); }
.em-legend-dot.em-schedule { background: var(--em-schedule); }
.em-legend-dot.em-delegate { background: var(--em-delegate); }
.em-legend-dot.em-eliminate { background: var(--em-eliminate); }

/* ============================================================
   CONTROLS ROW - FIXED LAYOUT
   ============================================================ */
.em-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.em-add-section {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ============================================================
   ADD TASK ROW - IMPROVED
   ============================================================ */
.em-add-row {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 0;
    align-items: center;
}

.em-add-row input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--em-radius-sm);
    font-family: var(--em-font-head);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--em-transition);
}

.em-add-row input[type="text"]:focus {
    outline: none;
    border-color: var(--em-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.em-add-row input[type="text"]::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ============================================================
   DROPDOWN SELECT - WITH ARROW
   ============================================================ */
.em-quadrant-select-wrapper {
    position: relative;
    flex-shrink: 0;
    min-width: 160px;
}

.em-quadrant-select {
    width: 100%;
    padding: 10px 38px 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--em-radius-sm);
    font-family: var(--em-font-head);
    font-size: 0.85rem;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    transition: var(--em-transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.em-quadrant-select:focus {
    outline: none;
    border-color: var(--em-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* Dropdown arrow icon */
.em-quadrant-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--em-transition);
}

.em-quadrant-select-wrapper:hover::after {
    color: var(--text);
}

/* Dropdown options styling */
.em-quadrant-select option {
    padding: 8px 12px;
    background: var(--card-bg);
    color: var(--text);
}

/* ============================================================
   ADD BUTTON
   ============================================================ */
.em-add-row .spin-btn {
    flex-shrink: 0;
    padding: 10px 24px;
    font-size: 0.85rem;
    min-height: 42px;
    border-radius: var(--em-radius-sm);
    margin: 0;
    white-space: nowrap;
}

/* ============================================================
   ACTIONS - HORIZONTAL
   ============================================================ */
.em-actions-horizontal {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.em-actions-horizontal .spin-btn {
    min-height: 42px;
    font-size: 0.85rem;
    margin: 0;
    padding: 10px 16px;
    width: auto;
    white-space: nowrap;
}

.em-actions-horizontal .spin-btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-color);
    box-shadow: none;
    opacity: 0.6;
}

.em-actions-horizontal .spin-btn--ghost:hover {
    opacity: 1;
    background: var(--card-bg);
    transform: none;
}

.em-actions-horizontal .spin-btn--secondary {
    background: var(--secondary);
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.35);
}

/* ============================================================
   SEARCH
   ============================================================ */
.em-search-wrapper {
    padding: 4px 0;
    animation: emSlideDown 0.3s ease;
}

@keyframes emSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.em-search-row {
    display: flex;
    align-items: center;
    position: relative;
}

.em-search-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--em-radius-sm);
    font-family: var(--em-font-head);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--em-transition);
}

.em-search-input:focus {
    outline: none;
    border-color: var(--em-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.em-search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--em-transition);
}

.em-search-clear:hover {
    color: var(--text);
    background: var(--card-bg);
}

/* ============================================================
   SUMMARY
   ============================================================ */
.em-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 0 0;
    border-top: 1px solid var(--panel-border);
}

.em-summary-item {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.em-summary-item strong {
    color: var(--text);
    font-weight: 700;
}

.em-summary-do-first strong { color: var(--em-do-first); }
.em-summary-schedule strong { color: var(--em-schedule); }
.em-summary-delegate strong { color: var(--em-delegate); }
.em-summary-eliminate strong { color: var(--em-eliminate); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.em-main-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 24px;
    overflow-y: auto;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   MATRIX GRID
   ============================================================ */
.em-matrix-panel {
    width: 100%;
    background: var(--panel-bg);
    border-radius: var(--em-radius);
    border: 1px solid var(--panel-border);
    overflow: hidden;
}

.em-matrix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    min-height: 500px;
    background: var(--border-color);
}

/* Quadrants */
.em-quadrant {
    background: var(--panel-bg);
    display: flex;
    flex-direction: column;
    min-height: 250px;
    position: relative;
    transition: var(--em-transition);
}

.em-quadrant:hover {
    background: var(--bg);
}

.em-quadrant-do-first { border-left: 4px solid var(--em-do-first); }
.em-quadrant-schedule { border-left: 4px solid var(--em-schedule); }
.em-quadrant-delegate { border-left: 4px solid var(--em-delegate); }
.em-quadrant-eliminate { border-left: 4px solid var(--em-eliminate); }

/* Quadrant Header */
.em-quadrant-header {
    padding: 12px 16px 8px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}

.em-quadrant-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.em-quadrant-icon {
    font-size: 1rem;
}

.em-quadrant-title {
    font-family: var(--em-font-head);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.em-quadrant-badge {
    font-family: var(--em-font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 8px;
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text);
    min-width: 20px;
    text-align: center;
}

.em-quadrant-do-first .em-quadrant-badge { color: var(--em-do-first); }
.em-quadrant-schedule .em-quadrant-badge { color: var(--em-schedule); }
.em-quadrant-delegate .em-quadrant-badge { color: var(--em-delegate); }
.em-quadrant-eliminate .em-quadrant-badge { color: var(--em-eliminate); }

.em-quadrant-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quadrant Tasks */
.em-quadrant-tasks {
    flex: 1;
    padding: 8px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
}

.em-quadrant-tasks::-webkit-scrollbar {
    width: 4px;
}
.em-quadrant-tasks::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* Task Cards */
.em-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--card-bg);
    border-radius: var(--em-radius-sm);
    border: 1px solid var(--panel-border);
    margin-bottom: 6px;
    cursor: grab;
    transition: var(--em-transition);
    animation: emTaskAppear 0.3s ease;
    position: relative;
}

.em-task:last-child {
    margin-bottom: 0;
}

.em-task:hover {
    border-color: var(--em-purple);
    transform: translateX(4px);
}

.em-task:active {
    cursor: grabbing;
}

.em-task.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.em-task.drag-over {
    border-color: var(--em-purple);
    border-width: 2px;
    transform: scale(1.02);
}

@keyframes emTaskAppear {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.em-task-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--em-transition);
}

.em-task-checkbox:hover {
    border-color: var(--em-purple);
}

.em-task-checkbox.checked {
    background: var(--em-purple);
    border-color: var(--em-purple);
    position: relative;
}

.em-task-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

.em-task-description {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

.em-task-description.completed {
    text-decoration: line-through;
    opacity: 0.5;
}

.em-task-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.em-task-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.em-task-priority.high { background: var(--em-do-first); }
.em-task-priority.medium { background: var(--em-schedule); }
.em-task-priority.low { background: var(--em-eliminate); }

.em-task-due-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 2px 8px;
    background: var(--bg);
    border-radius: 12px;
    white-space: nowrap;
}

.em-task-due-date.overdue {
    color: var(--em-do-first);
    background: var(--em-do-first-bg);
}

.em-task-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.em-task-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: var(--em-transition);
    line-height: 1;
}

.em-task-btn:hover {
    color: var(--text);
    background: var(--bg);
}

.em-task-btn.delete:hover {
    color: var(--em-do-first);
    background: var(--em-do-first-bg);
}

/* Drop Zone */
.em-quadrant-drop-zone {
    padding: 8px;
    text-align: center;
    border: 2px dashed transparent;
    border-radius: var(--em-radius-sm);
    margin: 0 8px 8px;
    transition: var(--em-transition);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.em-quadrant-drop-zone.drag-over {
    border-color: var(--em-purple);
    background: rgba(168, 85, 247, 0.05);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.em-empty-matrix {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--panel-bg);
    border-radius: var(--em-radius);
    border: 1px solid var(--panel-border);
}

.em-empty-matrix-content {
    text-align: center;
    padding: 40px;
    max-width: 560px;
}

.em-empty-matrix-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.em-empty-matrix-content h3 {
    font-family: var(--em-font-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 8px;
}

.em-empty-matrix-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 24px;
}

.em-empty-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
}

.em-empty-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card-bg);
    border-radius: var(--em-radius-sm);
    border: 1px solid var(--panel-border);
}

.em-empty-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--em-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.em-empty-step span:last-child {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

/* ============================================================
   MODAL
   ============================================================ */
.em-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.em-modal.active {
    display: flex;
    animation: emModalFade 0.3s ease;
}

@keyframes emModalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.em-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.em-modal-content {
    position: relative;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--em-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.em-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--panel-border);
}

.em-modal-title {
    font-family: var(--em-font-head);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
}

.em-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--em-transition);
}

.em-modal-close:hover {
    color: var(--text);
    background: var(--bg);
}

.em-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.em-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.em-modal-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.em-modal-input,
.em-modal-select,
.em-modal-textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--em-radius-sm);
    font-family: var(--em-font-head);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg);
    transition: var(--em-transition);
    width: 100%;
}

.em-modal-input:focus,
.em-modal-select:focus,
.em-modal-textarea:focus {
    outline: none;
    border-color: var(--em-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.em-modal-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Modal dropdown with arrow */
.em-modal-select-wrapper {
    position: relative;
}

.em-modal-select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.em-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--panel-border);
}

.em-modal-footer .spin-btn {
    margin: 0;
    min-height: 38px;
    font-size: 0.85rem;
    padding: 8px 20px;
}

.em-modal-footer .spin-btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-color);
    box-shadow: none;
    opacity: 0.6;
}

.em-modal-footer .spin-btn--ghost:hover {
    opacity: 1;
    background: var(--card-bg);
}

/* ============================================================
   CONTEXT HELP
   ============================================================ */
.em-context-help {
    padding: 14px 24px;
    background: var(--bg);
    border-top: 1px solid var(--panel-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.em-context-help p {
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.em-context-help strong {
    color: var(--text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .em-controls-horizontal {
        padding: 12px 16px;
    }
    
    .em-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .em-legend-horizontal {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .em-controls-row {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }
    
    .em-add-section {
        flex-direction: column;
        width: 100%;
    }
    
    .em-add-row {
        flex-wrap: wrap;
    }
    
    .em-add-row input[type="text"] {
        min-width: 150px;
        flex: 1;
    }
    
    .em-quadrant-select-wrapper {
        min-width: 140px;
        flex: 1;
    }
    
    .em-actions-horizontal {
        width: 100%;
        justify-content: stretch;
    }
    
    .em-actions-horizontal .spin-btn {
        flex: 1;
        justify-content: center;
    }
    
    .em-main-content {
        padding: 16px;
    }
    
    .em-matrix-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 4px;
        min-height: auto;
    }
    
    .em-quadrant {
        min-height: 200px;
    }
    
    .em-quadrant-tasks {
        max-height: 200px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .em-controls-horizontal {
        padding: 10px 12px;
    }
    
    .em-title {
        font-size: 1.1rem;
    }
    
    .em-subtitle {
        font-size: 0.75rem;
    }
    
    .em-add-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .em-add-row input[type="text"] {
        min-width: 100%;
        width: 100%;
    }
    
    .em-quadrant-select-wrapper {
        min-width: 100%;
        width: 100%;
    }
    
    .em-add-row .spin-btn {
        width: 100%;
    }
    
    .em-main-content {
        padding: 12px;
        gap: 16px;
    }
    
    .em-matrix-grid {
        gap: 8px;
    }
    
    .em-quadrant {
        min-height: 150px;
        border-left-width: 3px;
    }
    
    .em-quadrant-header {
        padding: 8px 12px;
    }
    
    .em-quadrant-title {
        font-size: 0.8rem;
    }
    
    .em-quadrant-tasks {
        max-height: 150px;
        padding: 6px;
    }
    
    .em-task {
        padding: 6px 10px;
        gap: 8px;
    }
    
    .em-task-description {
        font-size: 0.8rem;
    }
    
    .em-empty-steps {
        grid-template-columns: 1fr;
    }
    
    .em-modal-content {
        margin: 16px;
    }
    
    .em-context-help {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
    
    .em-summary {
        gap: 8px;
        font-size: 0.7rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .em-controls-horizontal {
        padding: 8px;
    }
    
    .em-legend-horizontal {
        font-size: 0.65rem;
        gap: 6px;
    }
    
    .em-legend-dot {
        width: 10px;
        height: 10px;
    }
    
    .em-quadrant {
        min-height: 120px;
    }
    
    .em-quadrant-tasks {
        max-height: 120px;
        padding: 4px;
    }
    
    .em-task {
        padding: 4px 8px;
        gap: 6px;
        flex-wrap: wrap;
    }
    
    .em-task-description {
        font-size: 0.75rem;
        min-width: 100%;
        order: 1;
    }
    
    .em-task-meta {
        order: 2;
    }
    
    .em-task-actions {
        order: 3;
        margin-left: auto;
    }
    
    .em-empty-matrix-content {
        padding: 20px;
    }
    
    .em-empty-matrix-icon {
        font-size: 3rem;
    }
    
    .em-empty-matrix-content h3 {
        font-size: 1.1rem;
    }
    
    .em-empty-matrix-content p {
        font-size: 0.8rem;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes emTaskAppear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.em-task {
    animation: emTaskAppear 0.3s ease;
}