/* ==========================================================================
   Timeline Builder v2 - Card-Based Drag & Drop Interface
   ========================================================================== */

/* Import original styles */
.empty-row { background: none !important; }
.warning-highlight {
    border: 2px solid red;
    background-color: #ffe6e6;
}

.full-width-input {
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Card-Based Category Selector
   ========================================================================== */

.timeline-builder-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.category-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.category-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: move;
    position: relative;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: #2F5AAE;
}

.category-card.sortable-ghost {
    opacity: 0.4;
    background: #e3f2fd;
}

.category-card.sortable-drag {
    opacity: 0.9;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: rotate(2deg);
    border-color: #2F5AAE;
}

.category-card.inactive {
    opacity: 0.45;
    background: #fafafa;
    border: 2px dashed #ccc;
}

.category-card.inactive:hover {
    opacity: 0.6;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.drag-handle {
    font-size: 18px;
    color: #999;
    cursor: grab;
    user-select: none;
    line-height: 1;
    flex-shrink: 0;
}

.drag-handle:active {
    cursor: grabbing;
}

.card-title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    line-height: 1.3;
}

/* Remove Button - DISCREET */
.card-remove {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    color: #bbb;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
}

.card-remove:hover {
    opacity: 1;
    background: #fee;
    border-color: #f99;
    color: #d00;
    transform: scale(1.1);
}

/* When card is inactive, show + button slightly more visible */
.category-card.inactive .card-remove {
    opacity: 0.8;
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #4CAF50;
}

.category-card.inactive .card-remove:hover {
    opacity: 1;
    background: #c8e6c9;
}

/* Anchor Button - PROMINENT */
.card-anchor-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #2F5AAE;
    background: linear-gradient(135deg, #5a8de4 0%, #2F5AAE 100%);
    color: white;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(47, 90, 174, 0.4);
}

.card-anchor-btn:hover {
    background: linear-gradient(135deg, #6a9df4 0%, #3F6ABE 100%);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(47, 90, 174, 0.5);
}

/* When card is the anchor - green checkmark style */
.category-card.is-anchor {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.category-card.is-anchor .card-anchor-btn {
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
    border-color: #1e7e34;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

/* Anchor time input row */
.card-anchor-time {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.card-anchor-time input[type="time"] {
    padding: 6px 10px;
    border: 2px solid #2F5AAE;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #2F5AAE;
    width: 120px;
}

.anchor-label {
    font-size: 12px;
    font-weight: 600;
    color: #2F5AAE;
    background: #e8f0ff;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Step 3 Anchor Summary - Simplified */
.anchor-summary {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: 2px solid #2F5AAE;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.anchor-summary p {
    margin: 5px 0;
    font-size: 16px;
}

.anchor-summary #anchor-event-name {
    font-weight: 600;
    color: #2F5AAE;
    font-size: 15px;
}

.anchor-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.anchor-selector select {
    padding: 10px 15px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    min-width: 200px;
}

.anchor-selector input[type="time"] {
    padding: 10px 15px;
    font-size: 15px;
    border: 2px solid #2F5AAE;
    border-radius: 6px;
    color: #2F5AAE;
    font-weight: 600;
}

.small-button {
    padding: 8px 16px !important;
    font-size: 14px !important;
}

#change-anchor-btn {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

#change-anchor-btn:hover {
    background: #545b62;
}

/* Live Time Preview in Step 2 headers */
.time-range-preview {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-left: 10px;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
}

.time-range-preview.anchor-time {
    color: #2F5AAE;
    background: #e8f0ff;
    font-weight: 600;
}

.time-range-preview.anchor-time::before {
    content: '⚓ ';
}

/* Live Overlap Warning */
.live-overlap-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    color: #856404;
    font-size: 14px;
}

.live-overlap-warning strong {
    color: #664d03;
}

/* NEW: Conflict Warning Row in Step 2 Table */
.conflict-warning-row {
    background: #fff3cd !important;
}

.conflict-warning-row:hover {
    background: #fff3cd !important;
}

.conflict-warning-cell {
    padding: 0 !important;
}

.conflict-warning-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(to right, #fff3cd, #fffbf0);
    border-left: 4px solid #ffc107;
    flex-wrap: wrap;
}

.conflict-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.conflict-text {
    flex: 1;
    min-width: 200px;
    font-size: 13px;
    color: #856404;
    line-height: 1.4;
}

.conflict-text strong {
    color: #664d03;
}

.conflict-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.conflict-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.conflict-btn.reduce-btn {
    background: #2F5AAE;
    color: white;
}

.conflict-btn.reduce-btn:hover {
    background: #1a3d7a;
}

.conflict-btn.remove-anchor-btn {
    background: #6c757d;
    color: white;
}

.conflict-btn.remove-anchor-btn:hover {
    background: #545b62;
}

/* Available time indicator on category headers */
.available-time-indicator {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
    padding: 2px 8px;
    background: #e8f5e9;
    border-radius: 4px;
    font-weight: 500;
}

.available-time-indicator.warning {
    background: #fff3cd;
    color: #856404;
}

.available-time-indicator.danger {
    background: #f8d7da;
    color: #721c24;
}

/* Group count display under slider */
.group-count {
    display: block;
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 4px;
    font-weight: 500;
}

/* Micro-event time preview in Step 2 */
.micro-time-preview {
    display: none; /* Hidden by default */
    font-size: 11px;
    color: #2F5AAE;
    font-weight: 500;
    margin-top: 4px;
    padding: 2px 6px;
    background: #f0f5ff;
    border-radius: 3px;
    width: fit-content;
}

.micro-time-preview.has-time {
    display: block;
}

/* Toggle switches container in Step 3 */
.toggle-switches-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.toggle-hint {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Wedding Summary Row in Generated Timeline */
.wedding-summary-row {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-bottom: 2px solid #2F5AAE;
}

.wedding-summary-row td {
    padding: 15px 20px !important;
    text-align: center;
    font-size: 16px;
}

.summary-label {
    color: #555;
    margin-right: 5px;
}

.summary-duration {
    color: #666;
    font-weight: normal;
    margin-left: 10px;
}

/* Reset Button */
.reset-button {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    margin-left: 10px;
}

.reset-button:hover {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Warning for long days */
.long-day-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.long-day-warning .warning-icon {
    font-size: 24px;
}

.long-day-warning .warning-text {
    color: #856404;
    font-size: 14px;
}

/* General Toast Notification */
.general-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.general-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Category Header Collapse */
.category-header-row {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.category-header-row:hover {
    background: #f5f8ff !important;
}

.collapse-indicator {
    display: inline-block;
    width: 18px;
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
    margin-right: 5px;
}

.category-collapsed .collapse-indicator {
    transform: rotate(-90deg);
}

/* Hidden micro-event rows */
tr.micro-event-hidden {
    display: none !important;
}

/* ============================================================================
   ACTION BUTTONS (All Step 4 buttons - neutral style for WP themes)
   ============================================================================ */

.action-button {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin: 5px;
}

.action-button:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.action-button:active {
    background: #dee2e6;
}

/* ============================================================================
   PERSONALIZATION SECTION
   ============================================================================ */

.personalization-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.personalization-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2F5AAE;
    font-size: 20px;
}

.personalization-section p {
    color: #666;
    margin-bottom: 20px;
}

.name-inputs {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.name-input-group {
    flex: 1;
    min-width: 200px;
}

.name-input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.name-input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.name-input-group input:focus {
    outline: none;
    border-color: #2F5AAE;
}

.name-input-group input::placeholder {
    color: #aaa;
}

/* File hint */
.file-hint {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 10px;
}

/* ============================================================================
   CUSTOM MICRO-EVENT BUTTON
   ============================================================================ */

.add-micro-event-btn {
    background: #f8f9fa;
    border: 1px dashed #aaa;
    color: #666;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    margin: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.add-micro-event-btn:hover {
    background: #2F5AAE;
    color: white;
    border-color: #2F5AAE;
    border-style: solid;
}

.custom-micro-event-row {
    background: #fffbf0 !important;
}

.custom-micro-event-row td:first-child::before {
    content: '✨ ';
}

/* Custom event modal */
.custom-event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.custom-event-modal.show {
    display: flex;
}

.custom-event-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.custom-event-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2F5AAE;
}

.custom-event-modal .form-group {
    margin-bottom: 20px;
}

.custom-event-modal label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.custom-event-modal input,
.custom-event-modal select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.custom-event-modal .modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.custom-event-modal .btn-cancel {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.custom-event-modal .btn-add {
    background: #2F5AAE;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.remove-custom-event {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 5px;
    margin-left: 10px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.remove-custom-event:hover {
    opacity: 1;
}

/* ============================================================================
   SAVE PROGRESS SECTION
   ============================================================================ */

.save-progress-section {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

.save-progress-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.save-progress-section p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.save-button {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.save-button:hover {
    background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.load-button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.load-button:hover {
    background: linear-gradient(135deg, #3395ff 0%, #007bff 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.clear-button {
    background: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.clear-button:hover {
    background: #dc3545;
    color: white;
}

.save-status {
    margin-top: 10px;
    font-size: 13px;
    font-style: italic;
}

.save-status.success {
    color: #28a745;
}

.save-status.error {
    color: #dc3545;
}

.save-status.info {
    color: #17a2b8;
}

/* Overlap Warnings Container (Step 3) */
.overlap-warnings-container {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
}

.overlap-warnings-container h4 {
    color: #664d03;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.overlap-warning {
    background: white;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

.overlap-warning strong {
    color: #2F5AAE;
}

.overlap-amount {
    color: #dc3545;
    font-weight: 600;
    font-size: 12px;
}

/* Anchor Tip */
.anchor-tip {
    font-size: 13px;
    color: #666;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 3px solid #2F5AAE;
}

.anchor-tip strong {
    color: #2F5AAE;
}

/* Multiple anchors list */
#anchor-time-value {
    font-size: 14px;
    line-height: 1.6;
}

/* Anchor selector label */
.anchor-selector label {
    font-weight: 500;
    color: #666;
    margin-right: 10px;
}

/* Chronological Warning Toast */
.chrono-warning-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ff9800;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.chrono-warning-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Cards reordered animation */
.cards-reordered .category-card {
    animation: cardReorder 0.3s ease;
}

@keyframes cardReorder {
    0% {
        background: #fff3cd;
        transform: scale(1.02);
    }
    100% {
        background: white;
        transform: scale(1);
    }
}

/* Anchor time input styling within card */
.card-anchor-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    flex-wrap: wrap;
}

.card-anchor-time input[type="time"] {
    padding: 6px 10px;
    border: 2px solid #28a745;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #28a745;
    width: 110px;
    background: white;
}

.anchor-label {
    font-size: 11px;
    font-weight: 600;
    color: #28a745;
    background: #e8f5e9;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Active Badge - VERY DISCREET */
.card-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 500;
    background: transparent;
    color: #bbb;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e0e0e0;
}

/* Hide badge when card is anchor (the green border is enough) */
.category-card.is-anchor .card-badge {
    display: none;
}

.category-card.inactive .card-badge {
    background: transparent;
    color: #ccc;
    border-color: #eee;
}

.category-card.inactive .card-badge::before {
    content: "In";
}

.required-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: #ff9800;
    color: white;
    margin-left: auto;
    flex-shrink: 0;
}

.ceremony-required {
    border: 2px solid #ff9800;
    background: #fff8f0;
}

.ceremony-required .card-remove {
    display: none;
}

/* ==========================================================================
   Micro-Events Drag & Drop
   ========================================================================== */

.micro-events-sortable {
    min-height: 40px;
}

.micro-event-row {
    transition: all 0.2s ease;
    cursor: move;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.micro-event-row:hover {
    background: #f8f9fa;
}

.micro-event-row.sortable-ghost {
    opacity: 0.4;
    background: #e3f2fd;
}

.micro-event-row.sortable-drag {
    opacity: 0.9;
    background: white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

/* Prevent text selection during drag */
body.sortable-dragging {
    -webkit-user-select: none;
    user-select: none;
    cursor: grabbing !important;
}

body.sortable-dragging * {
    cursor: grabbing !important;
}

/* INACTIVE STATE - micro-event deactivated */
.micro-event-row.inactive {
    opacity: 0.4;
    background: #fafafa;
    cursor: default;
}

.micro-event-row.inactive:hover {
    background: #f5f5f5;
}

.micro-event-row.inactive td:first-child::before {
    opacity: 0.2;
    cursor: not-allowed;
}

/* Disable dragging for inactive rows */
.micro-event-row.inactive {
    pointer-events: auto; /* Keep button clickable */
}

/* IMPROVED: Make drag handles MUCH more visible */
.micro-event-row td:first-child {
    position: relative;
    padding-left: 35px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* NEW: Drag areas (columns 1 and 2) - show move cursor */
.micro-event-row .drag-area {
    cursor: move !important;
}

.micro-event-row.inactive .drag-area {
    cursor: default !important; /* Inactive rows can't be dragged */
}

/* PREVENT DRAG on slider column - NO SortableJS interaction */
.micro-event-row td:nth-child(3) {
    cursor: default !important;
}

/* Ensure slider is fully interactive */
.micro-event-row td:nth-child(3) input[type="range"] {
    cursor: pointer !important;
}

/* Value column - default cursor */
.micro-event-row td:nth-child(4) {
    cursor: default !important;
}

.micro-event-row td:first-child::before {
    content: '⋮⋮';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2F5AAE;
    font-size: 18px;
    font-weight: bold;
    cursor: grab;
    opacity: 0.4;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
    content: '⋮⋮';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2F5AAE;
    font-size: 18px;
    font-weight: bold;
    cursor: grab;
    opacity: 0.4;
    transition: all 0.2s;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.micro-event-row:hover td:first-child::before {
    opacity: 0.9;
    color: #1a3d7a;
    transform: translateY(-50%) scale(1.1);
}

.micro-event-row.sortable-drag td:first-child::before {
    cursor: grabbing;
    opacity: 1;
}

/* PREVENT DRAG on slider column - handled by JavaScript filter now */
.micro-event-row td:nth-child(3) {
    cursor: default;
}

/* Slider itself should have pointer cursor */
.micro-event-row td:nth-child(3) input[type="range"] {
    cursor: pointer !important;
}

/* Last column (value + button) - default cursor */
.micro-event-row td:nth-child(4) {
    cursor: default;
}

/* Mobile drag handle - hidden on desktop */
.mobile-drag-handle {
    display: none !important;
}

/* Mobile card content - hidden on desktop */
.mobile-card-content {
    display: none !important;
}

/* Mobile wrapper TD - hidden on desktop */
.mobile-wrapper-td {
    display: none !important;
}

/* NEW: Deactivate button for micro-events */
.micro-event-deactivate {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #aaa;
    color: white;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    text-align: center;
    margin-left: 10px;
    vertical-align: middle;
    opacity: 0;
    position: relative;
}

.micro-event-row:hover .micro-event-deactivate {
    opacity: 0.6;
}

.micro-event-deactivate:hover {
    background: #888;
    opacity: 1;
    transform: scale(1.1);
}

/* When inactive, show restore button (plus sign) */
.micro-event-row.inactive .micro-event-deactivate {
    background: #4CAF50;
    opacity: 0.5;
}

.micro-event-row.inactive:hover .micro-event-deactivate {
    opacity: 0.8;
}

.micro-event-row.inactive .micro-event-deactivate:hover {
    background: #388E3C;
    opacity: 1;
}

/* Category section spacing - ENHANCED visual separator */
.wedding-time-calculator h3 {
    margin: 0;
    padding: 16px 12px 12px 12px;
    font-size: 20px;
    color: #1a3d7a;
    font-weight: 700;
    background: linear-gradient(to right, #f0f4ff, #ffffff);
    border-left: 4px solid #2F5AAE;
    border-top: 2px solid #e0e0e0;
    margin-top: 30px;
    border-radius: 4px 4px 0 0;
}

/* First category shouldn't have top border/margin */
.wedding-time-calculator tr:first-child h3,
.wedding-time-calculator tr:nth-child(1) h3,
.wedding-time-calculator tr:nth-child(2) h3 {
    border-top: none;
    margin-top: 5px;
}

/* IMPROVED: Better row spacing and padding */
.wedding-time-calculator td {
    padding: 10px 12px;
    border: none;
    vertical-align: middle;
}

/* IMPROVED: Value column - make numbers larger and bolder, add button space */
.wedding-time-calculator td:nth-child(4) {
    width: 140px;
    font-weight: 700;
    font-size: 16px;
    color: #2F5AAE;
    text-align: right;
    white-space: nowrap;
    padding-right: 15px;
}

/* IMPROVED: De-emphasize rows with 0 minutes */
.wedding-time-calculator tr:has(span:contains("0 minutes")) {
    opacity: 0.5;
}

/* Better approach - add class via JS or style zero-value rows */
.wedding-time-calculator td span[class$="-value"]:empty::after,
.wedding-time-calculator td:last-child:contains("0 minutes") {
    opacity: 0.6;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.button-group {
    text-align: center;
    margin: 30px 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button,
.gray-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.primary-button {
    background: #2F5AAE;
    color: white;
}

.primary-button:hover {
    background: #234584;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.gray-button {
    background: #6c757d;
    color: white;
}

.gray-button:hover {
    background: #545b62;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Smaller screens - make description text wrap naturally */
@media (max-width: 1024px) {
    .wedding-time-calculator td:nth-child(1) {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

/* Very wide screens - allow more space for descriptions */
@media (min-width: 1400px) {
    .wedding-time-calculator td:nth-child(1) {
        min-width: 350px;
        white-space: normal;
    }
}

/* ==========================================================================
   Toggle Switch
   ========================================================================== */

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.toggle-switch label {
    cursor: pointer;
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    transition: background-color 0.2s;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.toggle-switch label:before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 10px;
    transition: transform 0.2s;
}

.toggle-switch input[type="checkbox"]:checked + label {
    background-color: #2F5AAE;
}

.toggle-switch input[type="checkbox"]:checked + label:before {
    transform: translateX(16px);
}

.toggle-switch-text {
    font-size: 14px;
    color: #333;
}

/* ==========================================================================
   Category Title Line
   ========================================================================== */

.category-title-line-class {
    font-weight: bold;
    font-size: 1.5em;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
}

.desired-category td {
    border: none;
}

/* ==========================================================================
   Time Input
   ========================================================================== */

.css-intput-time-timeline {
    color: #2F5AAE;
    padding: 1em;
    font-size: 1.5em;
    width: 100%;
    max-width: 300px;
    height: 3em;
    cursor: pointer;
    border: 2px solid #2F5AAE;
    border-radius: 8px;
    transition: all 0.3s;
}

.css-intput-time-timeline:hover {
    background-color: #f0f7ff;
    box-shadow: 0 2px 8px rgba(47, 90, 174, 0.2);
}

.css-intput-time-timeline:focus {
    outline: none;
    border-color: #234584;
    box-shadow: 0 0 0 3px rgba(47, 90, 174, 0.1);
}

/* ==========================================================================
   Tables - Wedding Time Calculator
   ========================================================================== */

.wedding-time-calculator {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

/* Table header row */
.wedding-time-calculator .table-header-row {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.wedding-time-calculator .table-header-row th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wedding-time-calculator .table-header-row th.suggested-time-header {
    color: #999;
    font-weight: 500;
}

/* Suggested time column - more subtle (only for micro-event rows) */
.wedding-time-calculator tbody tr:not(.category-header-step2) td:nth-child(2) {
    color: #999;
    font-size: 12px;
    font-style: italic;
}

.wedding-time-calculator input[type="range"] {
    width: 100%;
    min-width: 150px;
}

.wedding-time-calculator td,
.wedding-time-calculator-result td {
    padding: 10px 12px;
    border: none;
    vertical-align: middle;
}

.wedding-time-calculator tr {
    width: 100%;
    transition: background-color 0.2s;
}

.wedding-time-calculator tbody tr:not(.category-header-step2):hover {
    background-color: #f8f9fa;
}

.wedding-time-calculator .table-header-row:hover {
    background-color: #f8f9fa; /* Keep same color on hover */
}

/* First column: Event description - flexible width */
.wedding-time-calculator td:nth-child(1) {
    width: auto;
    min-width: 220px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    font-weight: 500;
}

/* Second column: Suggested time - small badge style */
.wedding-time-calculator td:nth-child(2) {
    width: 90px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 6px 8px;
}

/* Third column: Slider - comfortable width */
.wedding-time-calculator td:nth-child(3) {
    width: 220px;
    min-width: 180px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Fourth column: Value display - larger and bolder */
.wedding-time-calculator td:nth-child(4) {
    width: 110px;
    font-weight: 700;
    font-size: 16px;
    color: #2F5AAE;
    text-align: right;
    white-space: nowrap;
    padding-right: 15px;
}

/* Location textarea */
.wedding-time-calculator textarea.full-width-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 6px;
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
    font-family: inherit;
    transition: all 0.2s;
    background: #fafbfc;
}

.wedding-time-calculator textarea.full-width-input:hover {
    border-color: #d0d0d0;
    background: white;
}

.wedding-time-calculator textarea.full-width-input:focus {
    outline: none;
    border-color: #2F5AAE;
    background: white;
    box-shadow: 0 0 0 3px rgba(47, 90, 174, 0.1);
}

/* IMPROVED: Suggested time column styling */
.wedding-time-calculator td:nth-child(2) {
    width: 90px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
}

/* IMPROVED: Slider column */
.wedding-time-calculator td:nth-child(3) {
    width: 220px;
    min-width: 180px;
    padding-left: 15px;
    padding-right: 15px;
}

/* IMPROVED: Better slider styling */
.wedding-time-calculator input[type="range"] {
    width: 100%;
    min-width: 150px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

/* Disabled slider styling for inactive rows */
.wedding-time-calculator input[type="range"]:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wedding-time-calculator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #2F5AAE;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.wedding-time-calculator input[type="range"]:disabled::-webkit-slider-thumb {
    background: #ccc;
    cursor: not-allowed;
}

.wedding-time-calculator input[type="range"]::-webkit-slider-thumb:hover {
    background: #1a3d7a;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.wedding-time-calculator input[type="range"]:disabled::-webkit-slider-thumb:hover {
    background: #ccc;
    transform: none;
}

.wedding-time-calculator input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #2F5AAE;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.wedding-time-calculator input[type="range"]:disabled::-moz-range-thumb {
    background: #ccc;
    cursor: not-allowed;
}

.wedding-time-calculator input[type="range"]::-moz-range-thumb:hover {
    background: #1a3d7a;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.wedding-time-calculator input[type="range"]:disabled::-moz-range-thumb:hover {
    background: #ccc;
    transform: none;
}

.css-summary-results tr {
    width: 100%;
}

.css-summary-results td {
    font-size: 1em;
    width: auto;
    table-layout: auto;
    border: none;
    padding-top: 0.6em;
    padding-bottom: 0.6em;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .category-cards-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 12px;
    }
    
    /* Make table rows stack vertically on mobile */
    .wedding-time-calculator td {
        display: block;
        width: 100% !important;
        border: none;
        padding: 0.5em;
        white-space: normal !important;
    }
    
    .wedding-time-calculator tr {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        margin-bottom: 15px;
        border-bottom: 2px solid #e0e0e0;
        padding-bottom: 10px;
    }
    
    .wedding-time-calculator td:nth-child(2),
    .wedding-time-calculator td:nth-child(3),
    .wedding-time-calculator td:nth-child(4) {
        display: flex;
        text-align: left !important;
    }
    
    /* Show full text on mobile */
    .wedding-time-calculator td:nth-child(1) {
        white-space: normal !important;
        overflow: visible !important;
        font-weight: 600;
        font-size: 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .primary-button,
    .gray-button {
        width: 100%;
    }
}

/* Desktop optimization for wider screens */
@media (min-width: 1200px) {
    .wedding-time-calculator td:nth-child(1) {
        min-width: 280px;
    }
    
    .wedding-time-calculator td:nth-child(3) {
        width: 250px;
    }
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: slideIn 0.3s ease;
}

/* ==========================================================================
   Step 4 Button Grids
   ========================================================================== */

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.action-grid .action-button {
    padding: 12px 8px;
    font-size: 13px;
    white-space: nowrap;
}

.save-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.save-grid button {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
}

.save-grid button:hover {
    background: #e9ecef;
    border-color: #ccc;
}

.save-grid .file-button {
    border-width: 2px;
}

@media (max-width: 768px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .save-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .save-grid button:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

@media (max-width: 400px) {
    .action-grid .action-button {
        padding: 10px 5px;
        font-size: 12px;
    }
}


/* ==========================================================================
   Mobile Compact Micro-Events (Step 2)
   ========================================================================== */

@media (max-width: 768px) {
    /* Hide table header on mobile */
    .wedding-time-calculator .table-header-row {
        display: none !important;
    }
    
    /* Force table to block */
    table.wedding-time-calculator,
    table.wedding-time-calculator tbody,
    table.wedding-time-calculator thead {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }
    
    /* ===== MICRO-EVENT CARD ===== */
    table.wedding-time-calculator tr.micro-event-row {
        display: block !important;
        position: relative !important;
        background: #fff !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 8px !important;
        margin: 14px 5px 6px 14px !important;
        padding: 8px 45px 8px 32px !important;
        min-height: 60px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }
    
    /* Drag handle using ::before on the row */
    table.wedding-time-calculator tr.micro-event-row::before {
        content: "⋮⋮" !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        width: 26px !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f5f5f5 !important;
        color: #aaa !important;
        font-size: 12px !important;
        letter-spacing: 2px !important;
        border: none !important;
        border-right: 1px solid #e8e8e8 !important;
        border-radius: 8px 0 0 8px !important;
        cursor: grab !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* All TDs - reset completely */
    table.wedding-time-calculator tr.micro-event-row > td {
        display: inline !important;
        position: static !important;
        float: none !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        vertical-align: baseline !important;
        text-align: left !important;
    }
    
    /* TD 1: Event name - inline */
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(1) {
        display: inline !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #333 !important;
    }
    
    /* Hide desktop drag dots from TD1 */
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(1)::before {
        display: none !important;
        content: none !important;
    }
    
    /* Time preview badge inside TD1 */
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(1) .micro-time-preview {
        display: none !important;
        font-size: 9px !important;
        color: #2F5AAE !important;
        background: #e8f0fe !important;
        padding: 1px 4px !important;
        border-radius: 3px !important;
        font-weight: 600 !important;
        margin-left: 6px !important;
    }
    
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(1) .micro-time-preview.has-time {
        display: inline !important;
    }
    
    /* TD 2: Suggested time - inline after event name */
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(2) {
        display: inline !important;
        font-size: 10px !important;
        color: #999 !important;
        margin-left: 6px !important;
    }
    
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(2)::before {
        content: "💡" !important;
        font-size: 9px !important;
        margin-right: 2px !important;
    }
    
    /* TD 3: Slider - new line, full width */
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(3) {
        display: block !important;
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 0 !important;
    }
    
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(3) input[type="range"] {
        width: 100% !important;
        height: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* TD 4: Duration value - ABSOLUTE positioned top right */
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(4) {
        display: block !important;
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        bottom: auto !important;
        width: auto !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #2F5AAE !important;
        text-align: right !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }
    
    /* Deactivate X button - TOP LEFT corner, overlapping border */
    /* On mobile, button is appended to TR directly */
    table.wedding-time-calculator tr.micro-event-row > .micro-event-deactivate,
    table.wedding-time-calculator tr.micro-event-row > button.micro-event-deactivate,
    .wedding-time-calculator .micro-event-row > .micro-event-deactivate {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        position: absolute !important;
        inset: auto !important;
        left: -10px !important;
        top: -10px !important;
        right: auto !important;
        bottom: auto !important;
        opacity: 0.7 !important;
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        min-height: 22px !important;
        max-width: 22px !important;
        max-height: 22px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        padding: 0 !important;
        float: none !important;
        border-radius: 50% !important;
        border: 2px solid #fff !important;
        background: #999 !important;
        color: #fff !important;
        cursor: pointer !important;
        z-index: 100 !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
        text-align: center !important;
        transform: none !important;
        vertical-align: baseline !important;
    }
    
    table.wedding-time-calculator tr.micro-event-row > .micro-event-deactivate:active,
    table.wedding-time-calculator tr.micro-event-row > button.micro-event-deactivate:active,
    .wedding-time-calculator .micro-event-row > .micro-event-deactivate:active {
        opacity: 1 !important;
        background: #666 !important;
    }
    
    /* ===== CATEGORY HEADERS ===== */
    table.wedding-time-calculator tr.category-header-step2 {
        display: block !important;
        position: relative !important;
        margin: 12px 0 5px 0 !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    
    table.wedding-time-calculator tr.category-header-step2::before {
        display: none !important;
        content: none !important;
    }
    
    table.wedding-time-calculator tr.category-header-step2 > td {
        display: block !important;
        padding: 6px 0 !important;
    }
    
    table.wedding-time-calculator tr.category-header-step2 h3 {
        font-size: 15px !important;
        margin: 0 !important;
    }
    
    /* ===== CUSTOM EVENT ROW ===== */
    table.wedding-time-calculator tr.custom-micro-event-row {
        background: #fffbf0 !important;
    }
    
    table.wedding-time-calculator tr.custom-micro-event-row::before {
        background: #fef3d0 !important;
    }
    
    /* ===== INACTIVE STATE ===== */
    table.wedding-time-calculator tr.micro-event-row.inactive {
        opacity: 0.5 !important;
        background: #f8f8f8 !important;
    }
    
    /* ===== LOCATION ROWS ===== */
    table.wedding-time-calculator tr.location-row {
        display: block !important;
        position: relative !important;
        margin: 5px 0 !important;
        border: none !important;
        padding: 0 !important;
    }
    
    table.wedding-time-calculator tr.location-row::before {
        display: none !important;
        content: none !important;
    }
    
    table.wedding-time-calculator tr.location-row > td {
        display: block !important;
        padding: 0 !important;
    }
    
    /* ===== ADD EVENT BUTTON ROW ===== */
    table.wedding-time-calculator tr.add-event-row {
        display: block !important;
        position: relative !important;
        text-align: center !important;
        margin: 5px 0 !important;
        border: none !important;
        padding: 0 !important;
    }
    
    table.wedding-time-calculator tr.add-event-row::before {
        display: none !important;
        content: none !important;
    }
    
    table.wedding-time-calculator tr.add-event-row > td {
        display: block !important;
        padding: 0 !important;
    }
}

/* Extra compact for very small screens */
@media (max-width: 400px) {
    table.wedding-time-calculator tr.micro-event-row {
        padding: 6px 40px 6px 28px !important;
    }
    
    table.wedding-time-calculator tr.micro-event-row::before {
        width: 22px !important;
        font-size: 10px !important;
    }
    
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(1) {
        font-size: 12px !important;
    }
    
    table.wedding-time-calculator tr.micro-event-row > td:nth-child(4) {
        font-size: 12px !important;
        right: 24px !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .category-cards-container,
    .button-group,
    .action-grid,
    .save-grid,
    .toggle-switch,
    .drag-handle,
    .card-remove {
        display: none !important;
    }
}
