/* Marsk Camp Tasks - Light Glassmorphism Design */

/* Wrapper - works without .mct-bg since WP themes strip outer divs */
.mct-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2d3436 !important;
}

/* Header */
.mct-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 22px 28px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.mct-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e !important;
}

/* Header actions */
.mct-header-actions {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 10;
}
.mct-header-actions .mct-btn {
    position: relative;
    z-index: 11;
    cursor: pointer;
}

/* Filter buttons */
.mct-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.mct-filter {
    padding: 11px 22px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #636e72 !important;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mct-filter:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #2d3436;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.mct-filter.active {
    background: #1a1a2e;
    color: #fff !important;
    border-color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.25);
}

/* Task list */
.mct-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Single task - light glass card */
.mct-task {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
    border-left: 5px solid #dfe6e9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.mct-task:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
.mct-task.mct-priority-høj { border-left-color: #e17055; }
.mct-task.mct-priority-mellem { border-left-color: #fdcb6e; }
.mct-task.mct-priority-lav { border-left-color: #00b894; }
.mct-task.mct-status-færdig { opacity: 0.55; }

/* Task header (clickable) */
.mct-task-header {
    padding: 16px 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.03);
}
.mct-task-main {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.mct-task-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a2e !important;
}
.mct-task-title.mct-done {
    text-decoration: line-through;
    color: #b2bec3 !important;
}

/* New badge */
.mct-new-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
    animation: mctPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes mctPulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3); }
    50% { box-shadow: 0 2px 14px rgba(108, 92, 231, 0.55); }
}

/* Priority badge */
.mct-priority-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}
.mct-priority-badge.mct-priority-høj {
    background: rgba(225, 112, 85, 0.15);
    color: #c0392b;
    border: 1px solid rgba(225, 112, 85, 0.3);
}
.mct-priority-badge.mct-priority-mellem {
    background: rgba(253, 203, 110, 0.25);
    color: #b8860b;
    border: 1px solid rgba(253, 203, 110, 0.45);
}
.mct-priority-badge.mct-priority-lav {
    background: rgba(0, 184, 148, 0.12);
    color: #00856a;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

/* Task images */
.mct-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 0 6px;
}
.mct-image-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mct-image-link:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: scale(1.02);
}
.mct-image {
    display: block;
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

/* Upload area in modal */
.mct-upload-area {
    margin-top: 4px;
}
.mct-btn-upload {
    background: transparent;
    border: 2px dashed rgba(0, 0, 0, 0.15);
    color: #636e72;
    padding: 14px 20px;
    font-size: 14px;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.mct-btn-upload:hover {
    border-color: #0984e3;
    color: #0984e3;
    background: rgba(9, 132, 227, 0.04);
    transform: none;
    box-shadow: none;
}
.mct-upload-preview {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}
.mct-upload-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.mct-preview-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    background: #d63031;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.mct-preview-remove:hover {
    background: #c0392b;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Subtasks / delopgaver */
.mct-subtasks {
    margin: 14px 0;
    padding: 14px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.mct-subtasks h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
}
.mct-subtask-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}
.mct-subtask-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.03);
}
.mct-subtask-item:hover {
    background: rgba(0, 0, 0, 0.04);
}
.mct-subtask-check {
    width: 22px;
    height: 22px;
    border: 2px solid #b2bec3;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-size: 14px;
    color: transparent;
}
.mct-subtask-item.done .mct-subtask-check {
    background: #00b894;
    border-color: #00b894;
    color: #fff;
}
.mct-subtask-text {
    font-size: 15px;
    color: #2d3436;
    line-height: 1.4;
    flex: 1;
    cursor: pointer;
}
.mct-subtask-delete {
    background: none;
    border: none;
    color: transparent;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}
.mct-subtask-item:hover .mct-subtask-delete {
    color: #b2bec3;
}
.mct-subtask-delete:hover {
    color: #d63031 !important;
}
.mct-subtask-item.done .mct-subtask-text {
    text-decoration: line-through;
    color: #b2bec3;
}
.mct-subtask-progress {
    font-size: 12px;
    color: #636e72;
    margin-left: auto;
    white-space: nowrap;
}
.mct-add-subtask {
    display: flex;
    gap: 6px;
}
.mct-subtask-input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3436;
    font-family: inherit;
}
.mct-subtask-input::placeholder { color: #b2bec3; }
.mct-subtask-input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.mct-btn-add-sub {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px;
    padding: 0 !important;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0984e3;
    border-color: #0984e3;
    border-radius: 8px;
    flex-shrink: 0;
}
.mct-btn-add-sub:hover {
    background: #0872c4;
}
.mct-no-subtasks {
    color: #b2bec3;
    font-style: italic;
    font-size: 14px;
}

/* Modal subtask list */
.mct-modal-subtask-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.mct-modal-subtask-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    font-size: 14px;
    color: #2d3436;
}
.mct-modal-subtask-text {
    flex: 1;
}
.mct-modal-subtask-remove {
    background: none;
    border: none;
    color: #b2bec3;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    margin-left: 8px;
}
.mct-modal-subtask-remove:hover {
    color: #d63031;
}

/* Meta info */
.mct-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.mct-meta-item {
    font-size: 13px;
    color: #636e72 !important;
}
.mct-responsible {
    color: #6c5ce7 !important;
    font-weight: 600;
}
.mct-overdue {
    color: #d63031;
    font-weight: 700;
}

/* Task body (expandable) */
.mct-task-body {
    padding: 0 20px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.mct-description {
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444 !important;
}
.mct-created-by {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}
.mct-completed-by {
    font-size: 13px;
    color: #00856a;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(0, 184, 148, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(0, 184, 148, 0.15);
}

/* Action buttons */
.mct-task-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

/* Buttons - light glass */
.mct-btn {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    touch-action: manipulation;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.mct-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.mct-btn:active {
    transform: translateY(0);
}

.mct-btn-done {
    background: #00b894;
    border-color: #00b894;
}
.mct-btn-done:hover {
    background: #00a381;
}

.mct-btn-progress {
    background: #e17055;
    border-color: #e17055;
}
.mct-btn-progress:hover {
    background: #c9604a;
}

.mct-btn-reopen {
    background: #636e72;
    border-color: #636e72;
}
.mct-btn-reopen:hover {
    background: #535c60;
}

.mct-btn-comment {
    background: #6c5ce7;
    border-color: #6c5ce7;
}
.mct-btn-comment:hover {
    background: #5a4bd1;
}

.mct-btn-add {
    background: #0984e3;
    border-color: #0984e3;
    padding: 10px 18px;
    font-size: 14px;
}
.mct-btn-add:hover {
    background: #0872c4;
}

.mct-btn-sms {
    background: #00b894;
    border-color: #00b894;
}
.mct-btn-sms:hover {
    background: #00a381;
}

.mct-btn-print {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #636e72;
    padding: 10px 18px;
    font-size: 14px;
}
.mct-btn-print:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #2d3436;
}

/* Comments */
.mct-comments {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.mct-comments h4 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #2d3436;
    font-weight: 600;
}
.mct-comment-item {
    background: rgba(0, 0, 0, 0.025);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.mct-comment-author {
    font-weight: 600;
    font-size: 13px;
    color: #6c5ce7;
}
.mct-comment-date {
    font-size: 12px;
    color: #b2bec3;
    margin-left: 8px;
}
.mct-comment-content {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

/* Comment form inputs */
.mct-add-comment {
    margin-top: 12px;
}
.mct-add-comment input,
.mct-add-comment textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 8px;
    box-sizing: border-box;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3436;
    transition: all 0.25s ease;
}
.mct-add-comment input::placeholder,
.mct-add-comment textarea::placeholder {
    color: #b2bec3;
}
.mct-add-comment input:focus,
.mct-add-comment textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    background: #fff;
}
.mct-add-comment textarea {
    resize: vertical;
    min-height: 60px;
}

/* Empty / loading */
.mct-empty, .mct-loading {
    text-align: center;
    color: #b2bec3;
    padding: 40px 16px;
    font-size: 17px;
}
.mct-no-comments {
    color: #b2bec3;
    font-style: italic;
    font-size: 14px;
}

/* Status feedback */
.mct-status-msg {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin-left: 8px;
}
.mct-status-msg.success { background: #d4edda; color: #155724; }
.mct-status-msg.error { background: #f8d7da; color: #721c24; }

/* Login form - light glass */
.mct-login {
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.mct-login-form {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.mct-login h2 {
    font-size: 26px;
    margin-bottom: 8px;
    color: #1a1a2e;
}
.mct-login p {
    color: #636e72;
    margin-bottom: 20px;
}
.mct-login input {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin: 16px 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3436;
}
.mct-login input::placeholder { color: #b2bec3; }
.mct-login input:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    background: #fff;
}
.mct-login button {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 17px;
    background: #1a1a2e;
    border: none;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
}
.mct-login button:hover {
    background: #2d2d5e;
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.3);
}
.mct-error {
    color: #d63031;
    margin-top: 12px;
    font-weight: 500;
}

/* Modal overlay */
.mct-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: mctFadeIn 0.2s ease;
}
@keyframes mctFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes mctSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal card - light glass */
.mct-modal {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: mctSlideUp 0.3s ease;
}

.mct-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mct-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}
.mct-modal-close {
    background: none;
    border: none;
    color: #b2bec3;
    font-size: 26px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}
.mct-modal-close:hover {
    color: #2d3436;
}

.mct-modal-body {
    padding: 20px 28px;
}

.mct-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #636e72;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    margin-top: 16px;
}
.mct-label:first-child {
    margin-top: 0;
}

.mct-modal-body input,
.mct-modal-body textarea,
.mct-modal-body select {
    display: block;
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-sizing: border-box;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3436;
    transition: all 0.25s ease;
}
.mct-modal-body input::placeholder,
.mct-modal-body textarea::placeholder {
    color: #b2bec3;
}
.mct-modal-body input:focus,
.mct-modal-body textarea:focus,
.mct-modal-body select:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    background: #fff;
}
.mct-modal-body select option {
    background: #fff;
    color: #2d3436;
}
.mct-modal-body textarea {
    resize: vertical;
    min-height: 70px;
}

.mct-modal-row {
    display: flex;
    gap: 12px;
}
.mct-modal-col {
    flex: 1;
}

.mct-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 28px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mct-btn-cancel {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #636e72;
    padding: 12px 20px;
}
.mct-btn-cancel:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #2d3436;
}

.mct-btn-submit {
    background: #0984e3;
    border-color: #0984e3;
    padding: 12px 24px;
}
.mct-btn-submit:hover {
    background: #0872c4;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

/* Print stylesheet */
@media print {
    body * { visibility: hidden; }
    .mct-wrapper, .mct-wrapper * { visibility: visible; color: #000 !important; }
    .mct-wrapper { position: absolute; left: 0; top: 0; width: 100%; max-width: 100%; padding: 10px; }

    .mct-header { background: none !important; backdrop-filter: none !important; border: none; box-shadow: none; padding: 10px 0; }
    .mct-filters,
    .mct-btn,
    .mct-add-comment,
    .mct-task-actions,
    .mct-btn-print,
    .mct-modal-overlay,
    .mct-header-actions {
        display: none !important;
    }

    .mct-task {
        background: none !important;
        backdrop-filter: none !important;
        border: 1px solid #ccc !important;
        border-left: 4px solid #333 !important;
        page-break-inside: avoid;
        opacity: 1 !important;
        border-radius: 4px;
        box-shadow: none;
    }
    .mct-task.mct-priority-høj { border-left-color: #c0392b !important; }
    .mct-task.mct-priority-mellem { border-left-color: #d68910 !important; }
    .mct-task.mct-priority-lav { border-left-color: #1a8a5e !important; }

    .mct-task-body { display: block !important; border-top: 1px solid #ddd; }
    .mct-task.mct-status-færdig { display: none; }
    .mct-priority-badge {
        border: 1px solid #333 !important;
        color: #333 !important;
        background: #fff !important;
    }

    .mct-task-header::before {
        content: "\2610  ";
        font-size: 20px;
    }

    .mct-header h2::after {
        content: " - Udskrevet " attr(data-date);
        font-size: 14px;
        font-weight: 400;
    }

    .mct-comment-item { background: #f5f5f5 !important; border: 1px solid #ddd !important; }
    .mct-comments { border-top: 1px solid #ddd; }
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .mct-wrapper { padding: 12px 10px 40px; }
    .mct-header { padding: 16px; flex-wrap: wrap; gap: 12px; }
    .mct-header h2 { font-size: 22px; }
    .mct-header-actions { width: 100%; }
    .mct-header-actions .mct-btn { flex: 1; text-align: center; }
    .mct-task-title { font-size: 16px; }
    .mct-btn { padding: 12px 16px; font-size: 15px; width: 100%; text-align: center; }
    .mct-btn-add-sub { width: 44px !important; min-width: 44px !important; }
    .mct-task-actions { flex-direction: column; }
    .mct-filter { padding: 10px 14px; font-size: 14px; flex: 1; text-align: center; }
    .mct-task-header { padding: 14px 16px; }
    .mct-modal { margin: 10px; max-height: 85vh; }
    .mct-modal-body { padding: 16px 20px; }
    .mct-modal-row { flex-direction: column; gap: 0; }

}
