/* ─── Google Font ───────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── Reset & Base ──────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: #0f172a;
    color: #e2e8f0;
}

/* ─── Top Toolbar ───────────────────────────────────── */
.controls {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ─── Add Row Button ────────────────────────────────── */
#addBtn,
button:not(.delete):not(.clockBtn) {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

#addBtn:hover,
button:not(.delete):not(.clockBtn):hover {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);
    transform: translateY(-1px);
}

/* ─── Table Wrapper ─────────────────────────────────── */
.table-wrapper {
    padding: 20px;
    overflow-x: auto;
}

/* If no wrapper exists, apply padding to body fallback */
body>table {
    margin: 20px;
    width: calc(100% - 40px);
    border-radius: 14px;
    overflow: hidden;
}

/* ─── Table ─────────────────────────────────────────── */
table {
    border-collapse: collapse;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ─── Header ────────────────────────────────────────── */
thead tr {
    background: linear-gradient(90deg, #1e293b, #162032);
}

th {
    padding: 13px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
    border-bottom: 2px solid rgba(99, 179, 237, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
    white-space: nowrap;
}

th:last-child {
    border-right: none;
}

/* ─── Table Body ────────────────────────────────────── */
tbody tr {
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: #243447;
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 10px 8px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
}

td:last-child {
    border-right: none;
}

/* ─── Text / Date Inputs ────────────────────────────── */
td input[type=text],
td input[type=date] {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}

td input[type=text]:focus,
td input[type=date]:focus {
    background: rgba(99, 179, 237, 0.08);
    outline: 1px solid rgba(99, 179, 237, 0.3);
}

td input[type=date]::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}

/* ─── Checkboxes ────────────────────────────────────── */
td input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #22c55e;
    cursor: pointer;
    border-radius: 4px;
}

/* ─── Delete Button ─────────────────────────────────── */
.delete {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
}

.delete:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    transform: none !important;
}

/* ─── Row Color Classes ─────────────────────────────── */
tbody tr.green {
    background: rgba(134, 239, 172, 0.08);
}

tbody tr.green:hover {
    background: rgba(134, 239, 172, 0.14);
}

tbody tr.brown {
    background: rgba(214, 164, 107, 0.1);
}

tbody tr.brown:hover {
    background: rgba(214, 164, 107, 0.16);
}

tbody tr.darkblue {
    background: rgba(74, 144, 226, 0.1);
}

tbody tr.darkblue:hover {
    background: rgba(74, 144, 226, 0.16);
}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ══════════════════════════════════════════════════════
   CLOCK MODAL (unchanged dark modern from before)
══════════════════════════════════════════════════════ */
.clockOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.clockBox {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 28px 24px 22px;
    border-radius: 24px;
    width: 320px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
    animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1
    }
}

.clockDisplay {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f8fafc;
    margin-bottom: 18px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(99, 179, 237, 0.4);
}

.clockDial {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    background: radial-gradient(circle at 40% 35%, #1e3a5f, #0d1f35);
    border: none;
    box-shadow:
        0 0 0 3px rgba(99, 179, 237, 0.25),
        0 0 0 10px rgba(99, 179, 237, 0.08),
        inset 0 2px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    cursor: crosshair;
}

.tick {
    position: absolute;
    left: 50%;
    top: 4px;
    width: 1px;
    height: 8px;
    background: rgba(148, 188, 230, 0.4);
    transform-origin: center 116px;
}

.tick.big {
    height: 14px;
    width: 2px;
    top: 4px;
    background: rgba(148, 188, 230, 0.9);
    transform-origin: center 110px;
}

.num {
    position: absolute;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}

.num:hover {
    color: #fff;
    background: rgba(99, 179, 237, 0.2);
}

.hand {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: 95px;
    background: linear-gradient(to top, #63b3ed, #93c5fd);
    transform-origin: 50% 100%;
    border-radius: 3px 3px 0 0;
    translate: -50% -100%;
    box-shadow: 0 0 8px rgba(99, 179, 237, 0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hourHand {
    height: 70px;
    width: 4px;
    background: #1d4ed8;
}

.minuteHand {
    height: 100px;
    width: 2px;
    background: #3b82f6;
}

.centerDot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #63b3ed;
    border: 2px solid #1e3a5f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(99, 179, 237, 0.8);
    z-index: 2;
}

.clockLabel {
    margin-top: 14px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #64748b;
}

.clockBtn {
    margin: 10px 5px 0;
    padding: 8px 20px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.clockBtn:hover {
    background: rgba(99, 179, 237, 0.15);
    color: #e2e8f0;
    border-color: rgba(99, 179, 237, 0.3);
}

.ok {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.ok:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: #fff;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.55);
}

.cancel {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}

.cancel:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

/* ─── Search & Toolbar Extras ───────────────────────── */
#searchInput {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font-size: 13px;
    width: 200px;
    outline: none;
    transition: border 0.2s;
}

#searchInput:focus {
    border-color: rgba(99, 179, 237, 0.5);
}

#searchInput::placeholder {
    color: #64748b;
}

#sortSelect {
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1e293b;
    color: #e2e8f0;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.tool-btn {
    padding: 7px 14px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 12px !important;
    box-shadow: none !important;
    transition: all 0.2s !important;
}

.tool-btn:hover {
    background: rgba(99, 179, 237, 0.12) !important;
    color: #e2e8f0 !important;
    transform: none !important;
}

/* ─── Stats Bar ─────────────────────────────────────── */
.stats-bar {
    display: flex;
    gap: 16px;
    margin-left: auto;
    font-size: 13px;
    color: #94a3b8;
}

.stats-bar b {
    color: #e2e8f0;
}

.row-num {
    width: 36px;
    min-width: 36px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

/* ─── Save Indicator ────────────────────────────────── */
.save-indicator {
    font-size: 12px;
    color: #22c55e;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.save-indicator.visible {
    opacity: 1;
}

/* ─── Platform Progress Bars ────────────────────────── */
.platform-stats {
    display: flex;
    gap: 20px;
    padding: 10px 20px 0;
    flex-wrap: wrap;
}

.pstat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.pbar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.pbar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #63b3ed);
    border-radius: 99px;
    transition: width 0.4s ease;
}

/* ─── Copy Button ───────────────────────────────────── */
.copy-btn {
    background: rgba(99, 179, 237, 0.1) !important;
    color: #63b3ed !important;
    border: 1px solid rgba(99, 179, 237, 0.2) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: all 0.2s !important;
}

.copy-btn:hover {
    background: rgba(99, 179, 237, 0.2) !important;
    transform: none !important;
}

/* ─── Undo Toast ────────────────────────────────────── */
.undo-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 99999;
    font-size: 13px;
    animation: slideUp .2s ease;
}

.undo-toast button {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    padding: 4px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

/* ─── Drag & Drop ───────────────────────────────────── */
tr.dragging {
    opacity: 0.4;
}

/* ─── Empty State ───────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #475569;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
}

.empty-sub {
    font-size: 13px;
    margin-top: 6px;
}

/* ─── Light Theme Overrides ─────────────────────────── */
body.light {
    background: #f1f5f9;
    color: #0f172a;
}

/* Toolbar */
body.light .controls {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Table */
body.light table {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light thead tr {
    background: linear-gradient(90deg, #f0f4f8, #e8eef4);
}

body.light th {
    color: #334155;
    border-bottom-color: rgba(59, 130, 246, 0.2);
    border-right-color: #e2e8f0;
}

body.light tbody tr {
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
}

body.light tbody tr:hover {
    background: #f0f6ff;
}

body.light td {
    border-right-color: #e8edf3;
    color: #1e293b;
}

/* Row color classes — richer tints in light mode */
body.light tbody tr.green {
    background: #dcfce7;
}

body.light tbody tr.green:hover {
    background: #bbf7d0;
}

body.light tbody tr.brown {
    background: #fef3c7;
}

body.light tbody tr.brown:hover {
    background: #fde68a;
}

body.light tbody tr.darkblue {
    background: #b6d4f7;
}

body.light tbody tr.darkblue:hover {
    background: #83b8f5;
}

body.light tbody tr.black {
    background: #b7b7b7;
    color: white;
}

body.light tbody tr.black:hover {
    background: #808080;
}

/* Text / Date inputs */
body.light td input[type=text],
body.light td input[type=date] {
    color: #0f172a;
}

body.light td input[type=text]:focus,
body.light td input[type=date]:focus {
    background: rgba(59, 130, 246, 0.06);
    outline-color: rgba(59, 130, 246, 0.4);
}

body.light td input[type=date]::-webkit-calendar-picker-indicator {
    filter: none;
}

/* Checkboxes */
body.light td input[type=checkbox] {
    accent-color: #16a34a;
}

/* Search & Sort */
body.light #searchInput {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

body.light #searchInput::placeholder {
    color: #94a3b8;
}

body.light #searchInput:focus {
    border-color: rgba(59, 130, 246, 0.5);
}

body.light #sortSelect {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Tool buttons */
body.light .tool-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

body.light .tool-btn:hover {
    background: #e0eeff !important;
    color: #1d4ed8 !important;
    border-color: #93c5fd !important;
}

/* Stats bar */
body.light .stats-bar {
    color: #64748b;
}

body.light .stats-bar b {
    color: #0f172a;
}

/* Platform stats */
body.light .pstat {
    color: #64748b;
}

body.light .pbar {
    background: #e2e8f0;
}

/* Status dropdown */
body.light .statusSelect {
    color: #475569;
    background: transparent;
}

body.light .statusSelect[data-status="Published"] {
    color: #16a34a;
}

body.light .statusSelect[data-status="Scheduled"] {
    color: #2563eb;
}

body.light .statusSelect[data-status="Draft"] {
    color: #d97706;
}

body.light .statusSelect[data-status="Failed"] {
    color: #dc2626;
}

body.light .statusSelect option {
    background: #ffffff;
    color: #0f172a;
}

/* Delete button */
body.light .delete {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

body.light .delete:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #b91c1c !important;
}

/* Copy button */
body.light .copy-btn {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #2563eb !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

body.light .copy-btn:hover {
    background: rgba(59, 130, 246, 0.16) !important;
}

/* URL link */
body.light .url-link {
    color: #2563eb;
}

body.light .url-link:hover {
    color: #1d4ed8;
}

/* Bulk action buttons */
body.light #bulkDeleteBtn {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

/* Scrollbar */
body.light ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

body.light ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Undo toast */
body.light .undo-toast {
    background: #ffffff;
    color: #0f172a;
    border-color: #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Empty state */
body.light .empty-state {
    color: #94a3b8;
}

body.light .empty-title {
    color: #64748b;
}

/* ─── Delete Confirmation Popup ─────────────────────── */
.confirmOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.15s ease;
}

.confirmBox {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 32px 28px 24px;
    width: 320px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirmBox.light {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.confirmIcon {
    font-size: 40px;
    margin-bottom: 12px;
}

.confirmTitle {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
}

.confirmBox.light .confirmTitle {
    color: #0f172a;
}

.confirmSub {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirmBox.light .confirmSub {
    color: #475569;
}

.confirmActions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.confirmBtn {
    padding: 9px 22px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.confirmCancel {
    background: rgba(255, 255, 255, 0.07);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confirmCancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    transform: none;
}

.confirmBox.light .confirmCancel {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.confirmBox.light .confirmCancel:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.confirmDelete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.confirmDelete:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    transform: none;
}

/* ─── Clock Light Mode ───────────────────────────────── */
.clockBox.clockLight {
    background: linear-gradient(145deg, #ffffff, #f1f5f9);
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.clockBox.clockLight .clockDisplay {
    color: #0f172a;
    text-shadow: none;
}

.clockBox.clockLight .clockDial {
    background: radial-gradient(circle at 40% 35%, #dbeafe, #eff6ff);
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.2),
        0 0 0 10px rgba(59, 130, 246, 0.06),
        inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.clockBox.clockLight .tick {
    background: rgba(100, 116, 139, 0.35);
}

.clockBox.clockLight .tick.big {
    background: rgba(30, 64, 175, 0.6);
}

.clockBox.clockLight .num {
    color: #1e40af;
}

.clockBox.clockLight .num:hover {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.1);
}

.clockBox.clockLight .hand {
    background: linear-gradient(to top, #2563eb, #3b82f6);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

.clockBox.clockLight .centerDot {
    background: #2563eb;
    border-color: #eff6ff;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.clockBox.clockLight .clockLabel {
    color: #94a3b8;
}

.clockBox.clockLight .clockBtn {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
}

.clockBox.clockLight .clockBtn:hover {
    background: #e0eeff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.clockBox.clockLight .ok {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-color: transparent;
}

.clockBox.clockLight .cancel {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.25);
}

.clockBox.clockLight .cancel:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.toggle {
    padding: 4px 12px;
    border-radius: 999px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.toggle.yes {
    background: #3DC964 !important;
    color: #fff !important;
}

.toggle.yes:hover {
    background: #25b14d !important;
}

.toggle.no {
    background: #f84848 !important;
    color: #fff !important;
}

.toggle.no:hover {
    background: #c72323 !important;
}

/* equal width for all columns */
#grid th,
#grid td {
    width: 100px;
    max-width: 100px;
}

/* post name column = 3x */
#grid th:nth-child(2),
#grid td:nth-child(2) {
    width: 300px;
    max-width: 300px;
}

/* keep text tidy inside fixed cells */
#grid td input {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* first column 3x smaller than normal columns */
#grid th:first-child,
#grid td:first-child {
    width: 33px;
    max-width: 33px;
}

/* Post name column left align */
#grid th:nth-child(2),
#grid td:nth-child(2) {
    text-align: left;
}

#grid td:nth-child(2) input {
    text-align: left;
    font-weight: bold;
}

/* center actions column */
.actions-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
}