.calendar-week-helper a.mt-ds-lastmt-container-item-a-mttitle-beq {
    font-size: 0.8em;
    margin-right: 8px;
}

.calendar-week-helper {
    padding: 12px;
    padding-top: 0px;
    background: #fafafa;
    box-shadow: inset 0 6px 8px -6px rgba(0, 0, 0, 0), inset 0 -6px 8px -6px rgba(0, 0, 0, 0.15);
}

.calendar-week.row-tooltip-pointer {
    background: #fafafa;
    box-shadow: inset 0 6px 8px -6px rgba(0, 0, 0, 0.15), inset 0 6px 8px -6px rgba(0, 0, 0, 0);
    border-bottom: none !important;
    min-height: auto !important;
    cursor: normal;
}
.calendar-week.calendar-week-opened {
    border-bottom: none !important;
}
.row-tooltip-pointer .calendar-day,
.row-tooltip-pointer .calendar-day:hover {
    background: none !important;
    border: none !important;
    min-height: auto !important;
    background: #f0f0f0;
    cursor: initial;
}

.row-tooltip-pointer .calendar-day.selected {
    padding: 0px;
}
.row-tooltip-pointer .calendar-day.selected .calendar-helper-arrow {
    border: 12px solid transparent;

    border-bottom-color: hsl(120 39% 81% / 1);
    border-bottom-color: white;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
}
.calendar-week-helper-content-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.calendar-week-helper h5 {
    margin-top: 4px;
}

/* Past date styling - low specificity so other classes override */
.calendar-day.past-date {
    background-color: #fcfcfc;
}

.calendar-day.selected {
    border: 1px solid #4caf50;
    border-radius: 12px;
}

/* Month name label for first day of month */
/* Border styling moved to calendar-styles.css if needed */

.month-name-label {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    color: #2196f3;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.calendar-day.other-month .month-name-label {
    color: #999;
    opacity: 0.7;
}

/* Preview event styling - temporary/unconfirmed */
.calendar-event-preview {
    opacity: 0.9;
    /* border: 1px dashed rgba(255, 255, 255, 0.5);
    border-style: dashed;
    background: rgba(108, 117, 125, 0.3) !important; */
    position: relative;
    font-style: italic;

    /* background: rgb(17 91 156) !important; */
    background: linear-gradient(135deg, rgb(84 182 201 / 11%) 0%, rgb(21 198 189 / 31%) 100%) !important;

    border-radius: 8px !important;
    border: 1px dashed #04505c73;
    padding-bottom: 3px !important;
    margin-top: 1px;
    color: #04505c !important;
    font-weight: bold !important;
}

.calendar-event-preview::before {
    content: "⏱";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    opacity: 0.7;
}

.calendar-event-preview:hover {
    opacity: 0.8;
}

/* ========================================
   Date Details Cards Layout - Historie View
   ======================================== */
.date-details-cards-container {
    display: grid;
    /* 2 cols while Lernen card is hidden; restore repeat(3) when re-enabled */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 4px 0;
}

/* Responsive: 2 columns on tablet, 1 on mobile */
@media (max-width: 900px) {
    .date-details-cards-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .date-details-cards-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ========================================
   Card Base Styles
   ======================================== */
.date-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.date-detail-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Card Header Styles
   ======================================== */
.date-detail-card-header {
    padding: 14px 16px 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0) 100%);
}

.date-detail-card-header h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-detail-card-header h6 i {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Lernen card temporarily hidden in daily detail — remove display:none to restore */
.date-detail-card-lernen {
    display: none;
}

/* Lernen card header - purple accent */
.date-detail-card-lernen .date-detail-card-header {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.06) 0%, rgba(111, 66, 193, 0.02) 100%);
    border-bottom-color: rgba(111, 66, 193, 0.1);
}

.date-detail-card-lernen .date-detail-card-header h6 {
    color: #6f42c1;
}

/* Wiederholungen card header - teal accent */
.date-detail-card-wiederholungen .date-detail-card-header {
    background: linear-gradient(135deg, rgba(21, 198, 189, 0.08) 0%, rgba(21, 198, 189, 0.02) 100%);
    border-bottom-color: rgba(21, 198, 189, 0.15);
}

.date-detail-card-wiederholungen .date-detail-card-header h6 {
    color: #0d9488;
}

/* Verpasste card header - amber/warning accent */
.date-detail-card-verpasste .date-detail-card-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.02) 100%);
    border-bottom-color: rgba(245, 158, 11, 0.15);
}

.date-detail-card-verpasste .date-detail-card-header h6 {
    color: #b45309;
    flex: 1 1 auto;
    min-width: 0;
}

.date-detail-card-verpasste .date-detail-card-header-end {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 8px;
    margin-left: auto;
    flex: 0 1 auto;
}

.date-detail-card-verpasste .date-detail-verpasste-sort {
    margin-left: 0;
}

.date-detail-card-verpasste .mtsr-als-naechstes-sort-btn {
    font-size: 9px;
    padding: 3px 8px 3px 9px;
}

/* ========================================
   Card Summary Badge
   ======================================== */
.date-detail-card-summary {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.date-detail-card-lernen .date-detail-card-summary {
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
}

.date-detail-card-wiederholungen .date-detail-card-summary {
    background: rgba(21, 198, 189, 0.12);
    color: #0d9488;
}

.date-detail-card-verpasste .date-detail-card-summary {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

/* ========================================
   Card Content Container
   ======================================== */
.date-detail-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
    padding: 12px 8px 12px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.date-detail-card-content::-webkit-scrollbar {
    width: 6px;
}

.date-detail-card-content::-webkit-scrollbar-track {
    background: transparent;
}

.date-detail-card-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.date-detail-card-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ========================================
   Card Item Styles
   ======================================== */
.date-detail-card-item {
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 4px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
}

/* .date-detail-card-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 12px 0 0 12px;
    background: transparent;
    transition: background 0.2s ease;
} */

.date-detail-card-item:hover {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
    /* transform: translateX(2px); */
}

.date-detail-card-item.date-detail-item-actionable {
    cursor: pointer;
}

/* .date-detail-card-item.date-detail-item-actionable:hover::before {
    background: linear-gradient(180deg, #3eadd7 0%, #1266b4 100%);
} */

/* Active state for selected items */
.date-detail-card-item.active {
    color: #006e80;
    background: linear-gradient(135deg, rgba(84, 182, 201, 0.12) 0%, rgba(21, 198, 189, 0.2) 100%);
    border: 1px solid rgba(0, 128, 128, 0.2);
    box-shadow: 0 2px 8px rgba(21, 198, 189, 0.15);
}

/* .date-detail-card-item.active::before {
    background: linear-gradient(180deg, #15c6bd 0%, #0d9488 100%);
} */

.date-detail-card-item.active .date-detail-item-title {
    color: #04505c;
    font-weight: 600;
}

/* ========================================
   Category Tag Styles
   ======================================== */
.date-detail-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 6px;
    padding: 2px 8px;
    background: rgba(220, 53, 69, 0.08);
    border-radius: 6px;
}

.date-detail-category-tag .category-icon {
    color: #ff6b35;
    font-size: 0.7rem;
}

/* ========================================
   Item Title Styles
   ======================================== */
.date-detail-item-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.date-detail-item-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.date-detail-item-title .mtsr-cal-row-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}

.date-detail-item-title .mtsr-ratedot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
}

/* ========================================
   Item Meta Information
   ======================================== */
.date-detail-item-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-detail-item-meta i {
    font-size: 0.85em;
    opacity: 0.7;
}

/* ========================================
   Item Status Indicator
   ======================================== */
.date-detail-item-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 6px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 4px currentColor;
}

/* ========================================
   Empty State
   ======================================== */
.date-detail-empty {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    padding: 24px 16px;
    font-style: normal;
}

/* Item Menu - inline block instead of overlay */
.date-detail-item-menu {
    display: block;
    /* width: 100%; */
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 12px;

    border: 1px solid #e1e5e9;
    border: 1px solid #dde4ea;
    margin: 0px 8px;
    border-radius: 16px;
    padding-top: 8px;
}

.date-detail-menu-section {
    margin-bottom: 8px;
}

.date-detail-menu-section:last-child {
    margin-bottom: 0;
}

.date-detail-menu-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #04505c;
    margin-bottom: 8px;
}

.date-detail-menu-date-input-new-date-container {
    background: #388baa42;
    border: 1px solid #429ab6;
    border-radius: 10px;
    padding: 1px 8px;
    padding-right: 9px;
    font-size: 0.9rem;

    width: 50%;

    background: var(--mtsr-dashboard-gradient-subtle2);
    /* box-shadow: var(--mtsr-shadow-teal-inset); */
    border: 1px solid var(--mtsr-teal-100);

    background: linear-gradient(135deg, rgb(84 182 201 / 11%) 0%, rgb(21 198 189 / 31%) 100%);
    color: #006e80;
    border: 1px solid #0080802b;
}

.date-detail-menu-date-input {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.date-detail-menu-date-value-icon {
    margin-right: 4px;
}
.date-detail-menu-date-value {
    flex: 1;
    color: #333;
    color: #04505c;
    font-weight: bold;
    display: inline-block;
}

.date-detail-menu-date-preview,
.date-detail-menu-date-preview-header {
    margin-left: 17px;
}
.date-detail-menu-date-preview-header {
    font-size: 0.8em;
    /* text-decoration: underline; */
    color: #006e8075;
    line-height: 1;
    margin-top: 3px;
}
.date-detail-menu-date-preview {
    font-size: 0.9em;
}

.date-detail-menu-date-controls {
    display: flex;
    gap: 4px;
    width: 50%;
}

.date-btn {
    width: 24px;
    width: 50%;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s;
}

.date-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.date-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-btn:disabled:hover {
    background: white;
    border-color: #ddd;
}

.date-detail-menu-separator {
    height: 1px;
    background: #e1e5e9;
    margin: 8px auto;
    width: 75%;
    margin-top: 14px;
}

.date-detail-menu-buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
}

.date-detail-menu-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    width: 50%;
    text-align: center;
    padding: 4px 6px;
}

.date-detail-menu-btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
}

.date-detail-menu-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.date-detail-menu-btn-secondary {
    background: transparent;
    color: #666;
}

.date-detail-menu-btn:hover {
    background: #f5f5f5;
}

.date-detail-menu-btn-primary {
    background: #007bff;
    background: var(--mtsr-main-gradient-button);
    color: white;
    transition: none;
    border-radius: 10px;
    /* border-color: #007bff; */
    border-color: #3eadd7;
    box-shadow: var(--mtsr-shadow-teal), var(--mtsr-shadow-teal-inset);
}

.date-detail-menu-btn-primary:hover {
    background: #0056b3;
    background: #1266b4;
    /* border-color: #0056b3; */
}

/* Success state for detail menu save button - green checkmark */
.date-detail-menu-btn-primary.scheduled {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.date-detail-menu-btn-primary.scheduled:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* Success state for verpasste button - green checkmark */
.date-detail-verpasste-btn.scheduled {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: #16a34a;
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.date-detail-verpasste-btn.scheduled:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* Success animation - smooth scale and fade-in for checkmark */
@keyframes checkmarkAppear {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.date-detail-menu-btn-primary.scheduled,
.date-detail-verpasste-btn.scheduled {
    animation: checkmarkAppear 0.3s ease-out;
}

/* Error state for detail menu save button - red */
.date-detail-menu-btn-primary.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: errorShake 0.4s ease-out;
}

/* Error state for verpasste button - red */
.date-detail-verpasste-btn.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: errorShake 0.4s ease-out;
}

/* Error state for verpasste item */
.date-detail-verpasste-item.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Subtle shake animation for errors */
@keyframes errorShake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-4px);
    }
    40% {
        transform: translateX(4px);
    }
    60% {
        transform: translateX(-3px);
    }
    80% {
        transform: translateX(3px);
    }
}

/* Modern deactivate button in manage section */
.date-detail-menu-section-manage {
    /* text-align: center; */
}

.date-detail-menu-btn-deactivate {
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.date-detail-menu-btn-deactivate:hover {
    opacity: 1;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
}

.date-detail-menu-btn-deactivate:active {
    transform: scale(0.98);
}

/* Out of range indicator - shown when rescheduled date is outside visible calendar */
.date-detail-menu-out-of-range {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 6px 8px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border: 1px solid #efdda8;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #856404;
    color: #d0a834;
    color: #b0974d;
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    padding-left: 7px;
}

.date-detail-menu-out-of-range .out-of-range-icon {
    font-size: 1rem;
    line-height: 1;
}

/* ========================================
   Verpasste Wiederholungen List Styles
   ======================================== */
.date-detail-verpasste-list {
    max-height: calc(5 * 56px);
    overflow-y: auto;
    padding: 4px;
    margin: -4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

.date-detail-verpasste-list::-webkit-scrollbar {
    width: 6px;
}

.date-detail-verpasste-list::-webkit-scrollbar-track {
    background: transparent;
}

.date-detail-verpasste-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.date-detail-verpasste-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.date-detail-card-verpasste .date-detail-card-content {
    overflow: unset;
    padding-top: 8px;
}

/* Verpasste Item - Enhanced styling */
.date-detail-verpasste-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    position: relative;
}

/* .date-detail-verpasste-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    opacity: 0.6;
} */

.date-detail-verpasste-item .date-detail-item-meta {
    margin-bottom: 0;
    margin-top: 2px;
}

.date-detail-verpasste-item:last-child {
    margin-bottom: 0;
}

.date-detail-verpasste-item:hover {
    background: linear-gradient(135deg, #fff8e7 0%, #ffffff 100%);
    border-color: rgba(245, 158, 11, 0.25);
    /* transform: translateX(2px); */
}

.date-detail-verpasste-item:hover::before {
    opacity: 1;
}

/* Verpasste Item Content */
.date-detail-verpasste-item-content {
    flex: 1;
    min-width: 0;
    padding-left: 4px;
}

.date-detail-verpasste-item-content .date-detail-item-title {
    margin-bottom: 2px;
    font-weight: 500;
    color: #1e293b;
}

.date-detail-verpasste-item-content .date-detail-item-meta {
    font-size: 0.72rem;
    color: #92734d;
    margin-left: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.date-detail-verpasste-item-content .date-detail-item-meta i {
    font-size: 0.9em;
    margin-right: 2px;
    opacity: 0.8;
}

/* Verpasste Button - Amber theme */
.date-detail-verpasste-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.date-detail-verpasste-btn:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.date-detail-verpasste-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

.date-detail-verpasste-btn:disabled,
.date-detail-verpasste-btn[disabled] {
    background: linear-gradient(135deg, #fcd34d40 0%, #f59e0b40 100%);
    color: #c9a86a;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Reschedule button - fixed width to prevent resize */
.date-detail-verpasste-btn {
    min-width: 105px;
    text-align: center;
    justify-content: center;
}

/* Loading spinner for reschedule button */
.mtsr-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: mtsr-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes mtsr-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading state for verpasste item */
.date-detail-verpasste-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.date-detail-verpasste-item.loading .date-detail-verpasste-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Scheduled state for verpasste item - success visual feedback */
.date-detail-verpasste-item.scheduled {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.date-detail-verpasste-item.scheduled .date-detail-verpasste-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    cursor: default;
}

/* Scheduled date indicator in item meta */
.date-detail-verpasste-item.scheduled .scheduled-date {
    color: #16a34a;
    font-weight: 600;
}

/* Actions container for verpasste item */
.date-detail-verpasste-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Deactivate button */
.date-detail-verpasste-deactivate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.date-detail-verpasste-deactivate-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    transform: scale(1.05);
}

.date-detail-verpasste-deactivate-btn:active {
    transform: scale(0.95);
}

.date-detail-verpasste-deactivate-btn:disabled,
.date-detail-verpasste-deactivate-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.date-detail-verpasste-deactivate-btn.deactivated {
    background: #dcfce7;
    border-color: #86efac;
    color: #16a34a;
}

.date-detail-verpasste-deactivate-btn.error {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
    animation: errorShake 0.4s ease-out;
}

/* Small spinner for deactivate button */
.mtsr-spinner-small {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(100, 116, 139, 0.2);
    border-radius: 50%;
    border-top-color: #64748b;
    animation: mtsr-spin 0.8s linear infinite;
}

/* Deactivated state for verpasste item */
.date-detail-verpasste-item.deactivated {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    transition: all 0.3s ease;
}

/* Fade out animation for removed items */
.date-detail-verpasste-item.removing {
    animation: mtsr-fade-out 0.3s ease-out forwards;
}

@keyframes mtsr-fade-out {
    from {
        opacity: 1;
        max-height: 80px;
        margin-bottom: 4px;
    }
    to {
        opacity: 0;
        max-height: 0;
        margin-bottom: 0;
        overflow: hidden;
    }
}

.date-detail-verpasste-empty {
    text-align: center;
    padding: 16px;
    color: #888;
    font-size: 0.85rem;
}

/* Visual feedback when new event is added to a day */
.calendar-day.has-new-event {
    animation: mtsr-pulse-highlight 0.5s ease-out;
}

@keyframes mtsr-pulse-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Responsive for detail cards */
@media (max-width: 968px) {
    .date-details-cards-container {
        grid-template-columns: 1fr;
    }
}
