html, body {
    font-family: 'Inter', 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F7F8FA;
}

.mud-appbar-dense .mud-toolbar {
    min-height: 56px;
}

/* Slightly elevated cards for a cleaner modern look */
.mud-paper-elevation2 {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04) !important;
}

/* Rounder buttons globally */
.mud-button-root {
    border-radius: 8px !important;
}
.mud-icon-button {
    border-radius: 8px !important;
}

/* Slightly softer table headers */
.mud-table-head .mud-table-cell {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #737373;
}

/* Tighter, more modern nav items */
.mud-nav-item .mud-nav-link {
    border-radius: 8px !important;
    margin: 2px 8px;
}

.page-container {
    padding: 16px;
}

/* Cover photo drop zone — dashed box matching Special Item upload style */
.cover-photo-drop-target {
    cursor: pointer;
    width: 100%;
    border: 2px dashed #bdbdbd;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}
.cover-photo-drop-target:hover {
    border-color: #0A97A5;
    background: rgba(10, 151, 165, 0.04);
}
.cover-photo-drag-over,
.photo-url-drag-over .cover-photo-drop-target {
    border-color: #1976d2 !important;
    border-style: solid !important;
    background: rgba(25, 118, 210, 0.08) !important;
}

/* Blue highlight when a URL/image is dragged over the cover photo zone */
.photo-url-drag-over .cover-photo-drop-target {
    border-color: #1976d2;
    border-style: solid;
    background: rgba(25, 118, 210, 0.08);
}

/* External image drag-over highlight on the photo library area */
.photo-url-drag-over {
    outline: 3px dashed #0A97A5 !important;
    outline-offset: 4px;
    border-radius: 8px;
    background: rgba(10, 151, 165, 0.08) !important;
}

/* Persistent drop zone visual (empty state) */
.photo-drop-zone-empty {
    border: 2px dashed #bdbdbd;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
}
.photo-drop-zone-empty:hover {
    border-color: #0A97A5;
    background: rgba(10, 151, 165, 0.04);
}

/* Rounder outlined inputs */
.mud-input-outlined .mud-input-outlined-border {
    border-radius: 8px !important;
}

/* Rounder dialogs */
.mud-dialog {
    border-radius: 12px !important;
}

/* Rounder chips */
.mud-chip-root {
    border-radius: 16px !important;
}

/* Softer select/autocomplete dropdowns */
.mud-popover-paper {
    border-radius: 8px !important;
}

/* Rich text display — renders Quill HTML output in read-only contexts */
.rich-text-display p { margin: 0 0 0.4em; }
.rich-text-display p:last-child { margin-bottom: 0; }
.rich-text-display ul, .rich-text-display ol { margin: 0 0 0.4em; padding-left: 1.4em; }
.rich-text-display strong { font-weight: 600; }
.rich-text-display em { font-style: italic; }
.rich-text-display u { text-decoration: underline; }
.rich-text-display a { color: inherit; }

/* Trip detail drag-and-drop — day zone highlight while dragging over */
.td-zone-hover {
    background: rgba(10, 151, 165, 0.06) !important;
    outline: 2px dashed rgba(10, 151, 165, 0.45) !important;
    outline-offset: -2px;
    border-radius: 4px;
}

/* Trip detail row — default cursor so grab cursor only shows on the handle */
.td-row { cursor: default !important; }

/* Drag handle icon — clear grab affordance with a comfortably large hit area.
   Was a faint #c0c0c0 with 0 2px padding (a tiny, hard-to-grab target); widened
   and darkened so the handle is easy to find and grab. */
.td-drag-handle {
    color: #757575;
    cursor: grab !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 6px 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
    touch-action: none;
}
.td-drag-handle:hover {
    color: #1976d2;
    background: rgba(25,118,210,0.10);
}
.td-drag-handle:active { cursor: grabbing !important; }

/* Trip-detail row-color legend */
.td-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
}
.td-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.15);
}

/* Trip detail row — seamless activity description input */
.td-activity-input {
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    padding: 2px 6px;
    font-family: inherit;
    font-size: 0.875rem;
    color: inherit;
    outline: none;
    flex: 1;
    min-width: 0;
    cursor: text;
    height: 28px;
    box-sizing: border-box;
}
.td-activity-input:hover {
    border-color: rgba(0,0,0,0.23);
    background: rgba(255,255,255,0.85);
}
.td-activity-input:focus {
    border-color: #1976d2;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(25,118,210,0.12);
}
.td-activity-input::placeholder {
    color: #c0c0c0;
    font-style: italic;
}

/* Opaque backdrop for dialogs opened on top of another dialog */
.opaque-backdrop {
    background: rgba(0, 0, 0, 0.85) !important;
}

/* Dashboard stat cards: stretch to row height AND enforce a min-height so cards
   stay visually aligned even when the grid wraps into multiple rows at narrow widths. */
.dashboard-stat-card {
    height: 100%;
    min-height: 130px;
}
