/* css/event-task-manager-css.css */

.entry-content {
  box-sizing: border-box;
  max-width: 100%;
} 

.event-task-manager {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.event-header {
    background: #f8f9fa;
    border-radius: 8px;
    padding-left: 1rem;
    margin-bottom: 2rem;
    border-left: 4px solid #007cba;
}

.event-header h2 {
    margin: 0 0 0.5rem 0;
    color: #23282d;
    font-size: 2rem;
}

.event-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.event-title-row h2 {
    margin: 0;
    flex: 1;
}

.slot-statistics {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #23282d;
    margin-right: 1rem;
}

.slot-statistics .percentage {
    font-size: 1.2rem;
    color: #007cba;
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(2.3);
    }
}

.slot-statistics .fraction {
    font-size: 0.9rem;
    color: #666;
    opacity: 0.8;
}

.event-dates {
    margin-bottom: .1rem;
}

/* User Role Indicators */
.user-role-indicator {
    display: inline-block;
    margin-left: 0rem;
	 margin-bottom: .3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    border: 1px solid;
    transition: all 0.3s ease;
}

.user-role-indicator .role-icon {
    margin-right: 0.3rem;
    font-size: 0.9rem;
}

.user-role-indicator.coordinator {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    border-color: #42a5f5;
}

.user-role-indicator.coordinator:hover {
    background: linear-gradient(135deg, #bbdefb, #90caf9);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(21, 101, 192, 0.2);
}

.user-role-indicator.member {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #7b1fa2;
    border-color: #ab47bc;
}

.user-role-indicator.member:hover {
    background: linear-gradient(135deg, #e1bee7, #ce93d8);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(123, 31, 162, 0.2);
}

.duration {
    font-weight: normal;
    color: #666;
    font-size: 0.9rem;
}

/* Multi-day navigation */
.day-tabs-container {
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}

.day-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.day-tabs::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.day-tab {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 0.75rem 1rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    min-width: auto;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.day-tab .tab-day {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-tab .tab-date {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 2px;
    color: #999;
}

.day-tab:hover {
    background: #e9ecef;
    color: #333;
    border-color: #ccc;
}

.day-tab:hover .tab-date {
    color: #666;
}

.day-tab.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
    border-bottom-color: #007cba;
    transform: translateY(1px);
}

.day-tab.active .tab-date {
    color: rgba(255, 255, 255, 0.9);
}

/* Special styling for "Alle Tage" tab */
.day-tab[data-date="all"] {
    flex-direction: row;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 90px;
    justify-content: center;
}

.day-content {
    margin-top: 1.5rem;
}

.day-header {
    color: #23282d;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007cba;
}

.no-tasks {
    background: #f8f9fa;
    padding: 2rem;
    text-align: center;
    color: #666;
    border-radius: 6px;
    font-style: italic;
}

.task-date-badge {
    background: #28a745;
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 1rem;
    font-weight: normal;
}

.event-description {
    color: #555;
    margin: 1rem 0 0 0;
    line-height: 1.6;
}

.tasks-container {
    display: block;
    gap: 2rem;
}

.task-item {
    background: white;
	 margin-top: 2px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.task-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.task-name {
    /* Further tightened vertical spacing and slightly larger font */
    margin: 0 0 0.08rem 0; /* reduce remaining bottom gap */
    color: #007cba;
    font-size: 1.22rem; /* a bit larger for readability */
    padding-bottom: 0;
    line-height: 1.1; /* keep compact while avoiding overlap */
}

.task-description {
    color: #666;
    margin: 0 0 0.6rem 0;
    line-height: 1.35;
}

.time-slots h4 {
    color: #23282d;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.time-slot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.15rem 0.55rem 0.35rem;
    margin: 0.35rem 0;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #007cba;
}

.slot-info {
    flex: 1;
}

.time-range {
    font-weight: 600;
    color: #23282d;
}

.slot-capacity {
    color: #666;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.general-task {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.15rem 0.55rem 0.35rem;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #007cba;
}

.task-capacity {
    font-weight: 600;
    color: #23282d;
}

.assign-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.1;
    transition: background-color 0.25s ease;
}

.assign-button:hover {
    background: #005a87;
}

.assign-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Conflict-disabled state */
.assign-button.etm-conflict:disabled {
    background: #bbb !important;
    opacity: 0.55;
    position: relative;
}
.assign-button.etm-conflict:disabled::after {
    content: '\26A0'; /* warning symbol */
    font-size: 0.9rem;
    margin-left: 6px;
}

.slot-full,
.task-full {
    background: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Shift enrollment status color coding */
.time-slot.enrollment-empty,
.general-task.enrollment-empty {
    background: #ffebee;
    border-left-color: #d32f2f;
    box-shadow: inset 0 0 0 1px rgba(211, 47, 47, 0.1);
}

.time-slot.enrollment-partial,
.general-task.enrollment-partial {
    background: #fff8e1;
    border-left-color: #f57c00;
    box-shadow: inset 0 0 0 1px rgba(245, 124, 0, 0.1);
}

.time-slot.enrollment-full,
.general-task.enrollment-full {
    background: #e8f5e8;
    border-left-color: #388e3c;
    box-shadow: inset 0 0 0 1px rgba(56, 142, 60, 0.1);
}

/* Task item overall enrollment status */
.task-item.enrollment-empty {
    background: #ffebee;
    border-left: 4px solid #d32f2f;
}

.task-item.enrollment-partial {
    background: #fff8e1;
    border-left: 4px solid #f57c00;
}

.task-item.enrollment-full {
    background: #e8f5e8;
    border-left: 4px solid #388e3c;
}


.assignments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.assignments h5 {
    margin: 0 0 0.5rem 0;
    color: #23282d;
    font-size: 1rem;
}

.assignments ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.assignments li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.assignments li:last-child {
    border-bottom: none;
}

.cancel-assignment {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 1rem;
}

.cancel-assignment:hover {
    background: #c82333;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    margin: 0 0 1.5rem 0;
    color: #23282d;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #23282d;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-actions button[type="submit"] {
    background: #007cba;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #005a87;
}

.form-actions button[type="button"] {
    background: #6c757d;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #545b62;
}

/* Message Styles */
#message-area {
    margin-top: 2rem;
}

.message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}



/* Category badges */
.task-category {
    display: inline-block;
    color: white !important;
    background-color: #0073aa;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

.task-category-badge, .category-badge {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-category-badge {
    margin-left: 8px;
    vertical-align: middle;
	 width: fit-content;
}


/* Admin category styling */
.wp-admin .category-badge {
    padding: 4px 4px;
    font-size: 12px;
}

/* Day tab filtering */
.date-section {
    min-height: 50px !important;
    min-width: 200px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    position: relative !important;
}

.date-section.hidden {
    display: none !important;
}

.date-section.visible {
    display: block !important;
}

/* Ensure tasks container maintains layout */
.tasks-container {
    display: block !important;
}

.tasks-container .date-section {
    display: block;
    margin-bottom: 2rem;
    min-height: 50px !important;
    min-width: 200px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.tasks-container .date-section.hidden {
    display: none !important;
}

.category-section.hidden {
    display: none !important;
}

.category-section.visible {
    display: block !important;
}

.task-item.hidden {
    display: none !important;
}

.task-item.visible {
    display: block !important;
}

/* Category Section Structure */
.category-section {
	padding: 3px;
    margin-bottom: 0.6rem;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    overflow: hidden;
    background: #fafbfc;
}

.category-header {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    border-radius: 8px;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #23282d;
}

.category-header .category-badge {
    margin: 0;
    font-size: 0.75rem;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: left;
    display: block;
    position: relative; /* allow inner day abbreviation positioning */
}

/* Day abbreviation in category badge (top-right corner) */
.category-header .category-badge .day-abbr {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    font-size: 0.55rem;
    font-weight: 700;
    opacity: 0.85;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.25);
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
}

.category-tasks {
    padding: 0;
    background: white;
}

.category-tasks .task-item {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}

.category-tasks .task-item:last-child {
    border-bottom: none;
}

.category-tasks .task-header {
    padding: 4px;
}

.category-tasks .task-header h5 {
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #23282d;
}

/* Modal Styles */
.etm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.etm-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.etm-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.etm-close:hover,
.etm-close:focus {
    color: #000;
    text-decoration: none;
}

.etm-modal h3 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #23282d;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.form-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"] {
    background-color: #007cba;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background-color: #005a87;
}

.form-actions button.cancel {
    background-color: #6c757d;
    color: white;
}

.form-actions button.cancel:hover {
    background-color: #545b62;
}

.form-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Message Styles */
.etm-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    font-weight: 600;
}

.etm-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.etm-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Per-line participant layout additions */
.time-slot .slot-line, .general-task .task-line {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.25rem 0.4rem;
    border-bottom: 1px solid #eee;
}
.time-slot .participant-line, .general-task .participant-line {
    display: flex;
    padding: 0.18rem 0.4rem;
    align-items: center;
    gap: 0.45rem;
    border-bottom: 1px solid #f3f3f3;
}
.time-slot .action-line, .general-task .action-line {
    padding: 0.3rem 0.4rem 0.45rem;
}
.time-slot .action-line .assign-button, .general-task .action-line .assign-button {
    margin-top: 0.2rem;
}
.time-slot .assignment.first, .general-task .assignment.first {
    margin-left: 0.5rem;
}
.time-slot .assignment button.cancel-assignment, .general-task .assignment button.cancel-assignment {
    background:#c62828;
    color:#fff;
    border:none;
    padding:2px 5px;
    font-size:0.7rem;
    line-height:1;
    border-radius:3px;
    cursor:pointer;
}
.time-slot .assignment button.cancel-assignment:hover, .general-task .assignment button.cancel-assignment:hover {
    background:#b71c1c;
}

/* View Tab Styling */
.view-tab {
    background: #f0f4f8;
    border: 1px solid #ccd7e0;
    color: #5a6c7d;
    padding: 0.75rem 1rem;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    min-width: auto;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.view-tab:hover {
    background: #e2e8f0;
    color: #2d3748;
    border-color: #a0aec0;
}

.view-tab.active {
    background: #4a5568;
    color: white;
    border-color: #4a5568;
    border-bottom-color: #4a5568;
    transform: translateY(1px);
}

/* Compact View Styles */
.compact-view {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.compact-header {
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 0;
}

.compact-date-headers {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 0;
}

.compact-date-col {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #2d3748;
    border-right: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    font-size: 0.85rem;
}

.compact-date-col:last-child {
    border-right: none;
}

.compact-category {
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.compact-category:last-child {
    border-bottom: none;
}

.compact-category-header {
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 0.2rem 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.compact-category-content {
    background: white;
}

.compact-row {
    display: grid;
    grid-auto-columns: 1fr;
    grid-auto-flow: column;
    gap: 0;
    border-bottom: 1px solid #f7fafc;
}

.compact-row:last-child {
    border-bottom: none;
}

.compact-cell {
    padding: 0.4rem 0.5rem;
    border-right: 1px solid #f1f5f9;
    font-size: 0.8rem;
    line-height: 1.3;
    min-height: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.compact-cell:last-child {
    border-right: none;
}

.compact-cell:empty {
    background: #fafafa;
    opacity: 0.5;
}

/* Print-specific styles */
@media print {
    .day-tabs-container,
    .assign-button,
    .cancel-assignment {
        display: none !important;
    }
    
    .compact-view {
        border: 1px solid #000;
        font-size: 10pt;
        margin: 0;
    }
    
    .compact-date-col {
        font-size: 9pt;
        padding: 0.3rem 0.2rem;
    }
    
    .compact-cell {
        font-size: 8pt;
        padding: 0.2rem 0.3rem;
        min-height: 1.2rem;
    }
    
    .compact-category-header {
        font-size: 9pt;
        padding: 0.4rem 0.5rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .day-tabs {
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    .day-tab,
    .view-tab {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
        min-width: 80px;
        border-radius: 4px;
        /* Improve touch targets */
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .day-tab .tab-day {
        font-size: 0.75rem;
    }
    
    .day-tab .tab-date {
        font-size: 0.7rem;
        margin-top: 1px;
    }
    
    /* Compact view mobile optimizations */
    .compact-view {
        font-size: 0.8rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .compact-category-header {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        /* Ensure headers are properly positioned on mobile */
        position: absolute !important;
        box-sizing: border-box;
    }
    
    .compact-cell {
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
        min-height: 1.5rem;
        line-height: 1.2;
    }
    
    .compact-date-col {
        font-size: 0.75rem;
        padding: 0.6rem 0.4rem;
        min-width: 60px;
    }
    
    .compact-participant {
        font-size: 0.7rem;
    }
    
    .compact-participant-empty {
        font-size: 0.65rem;
    }
    
    .compact-time-display {
        font-size: 0.65rem;
    }
    
    .compact-row {
        min-height: 1.5rem;
    }
}

@media (max-width: 480px) {
    .day-tabs-container {
        margin-bottom: 1rem;
    }
    
    .day-tab,
    .view-tab {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .day-tab .tab-day {
        font-size: 0.7rem;
    }
    
    .day-tab .tab-date {
        font-size: 0.65rem;
    }
    
    .compact-view {
        font-size: 0.75rem;
        border-radius: 4px;
    }
    
    .compact-category-header {
        font-size: 0.7rem;
        padding: 0.4rem 0.5rem;
    }
    
    .compact-cell {
        font-size: 0.65rem;
        padding: 0.25rem 0.3rem;
        min-height: 1.3rem;
    }
    
    .compact-date-col {
        font-size: 0.7rem;
        padding: 0.5rem 0.3rem;
        min-width: 50px;
    }
    
    .compact-participant {
        font-size: 0.65rem;
    }
    
    .compact-participant-empty {
        font-size: 0.6rem;
    }
    
    .compact-time-display {
        font-size: 0.6rem;
    }
}

/* Task Header Styles for Compact View */
.compact-task-header {
    position: absolute;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    z-index: 5;
    margin-top: 0.2rem;
    background-color: rgba(255,255,255,0.9);
    border: none;
    border-bottom: 1px solid #d1d5db;
}

.compact-task-content {
    position: relative;
}

.compact-time-header {
    position: absolute;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 0;
    padding: 0.1rem 0.4rem;
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    z-index: 3;
    margin-top: 0.1rem;
    box-shadow: none;
}

.compact-participants-row {
    position: relative;
}

.compact-cell small {
    color: #666;
    font-size: 0.65rem;
    line-height: 1.2;
    display: block;
    margin-top: 0.2rem;
}

.compact-participant {
    color: #333;
    font-size: 0.75rem;
    line-height: 1.3;
    padding: 0.1rem 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0.1rem;
}

.compact-participant:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.compact-participant-empty {
    background-color: #fee2e2;
    color: #b91c1c;
    border-color: #f87171;
    font-style: italic;
    text-align: center;
    opacity: 0.9;
}

.compact-time-display {
    color: #666;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #e0e0e0;
}

/* Warning Triangle Icon */
.warning-triangle {
    display: inline-block;
    margin-left: 0.3rem;
    font-size: 1rem;
    vertical-align: middle;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    animation: warning-pulse 2.5s ease-in-out infinite;
}

.assign-button .warning-triangle {
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

@keyframes warning-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(4);
    }
}

.action-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

