:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --input-yellow: #fef08a;
    --input-yellow-border: #fca5a5;
    --output-white: #ffffff;
    --output-total-bg: #f3f4f6;
    --primary-accent: #0f172a;
    --border-color: #e5e7eb;
    --border-color: #e5e7eb;
    --shadow-sm: none;
    /* Removed soft shadows */
    --shadow-md: 4px 4px 0px 0px rgba(0, 0, 0, 0.1);
    /* Sharp block shadow */
    --border-radius: 0px;
    /* Sharp corners */
}

[data-theme="dark"] {
    --bg-color: #111827;
    --card-bg: #1f2937;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --input-yellow: #422006;
    /* Darker yellow/brown */
    --input-yellow-border: #f59e0b;
    --output-white: #374151;
    --output-total-bg: #4b5563;
    --primary-accent: #f3f4f6;
    --border-color: #374151;
    --border-color: #374151;
    --shadow-sm: none;
    --shadow-md: 4px 4px 0px 0px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.4;
    padding: 2rem;
    letter-spacing: 0.5px;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0px;
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-accent);
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--input-yellow);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.registration-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.registration-group input {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    width: 180px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    border: 2px solid var(--border-color);
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    /* Thicker border */
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--card-bg);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    transform: translateX(280px);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Toggle Switch */
.theme-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-accent);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Input/Output Styling */
input,
select {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 2px solid var(--border-color);
    /* Thicker borders */
    border-radius: 0px;
    /* Sharp inputs */
    font-family: 'JetBrains Mono', monospace;
    /* Monospaced data */
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
}

/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-yellow {
    background-color: var(--input-yellow);
    border-color: var(--input-yellow-border);
    color: #451a03;
    /* Good contrast on light yellow */
    font-weight: 500;
}

#dep-station,
#arr-station {
    text-transform: uppercase;
}

[data-theme="dark"] .input-yellow {
    color: #fef08a;
    /* Light yellow text on brown bg */
}


.input-yellow:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.4);
}

/* Station Wrapper for weather status */
.station-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 75px;
    /* Reserve space for input + status message */
}

.station-wrapper input {
    width: 100%;
}

.output-white {
    background-color: var(--output-white);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 700;
    cursor: default;
}

/* Specific component grids */
.conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: start;
}

.conditions-grid label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: 0.7rem;
    /* Center label with input field */
}

.col-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
}

.wind-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
}

.mid-section-header {
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
    color: var(--primary-accent);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.2rem;
}

.cruise-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.75fr 0.75fr;
    gap: 0.5rem;
    align-items: center;
}

.wind-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.wind-input-group input {
    padding: 0.5rem 0.6rem;
    font-size: 0.9rem;
    text-align: center;
}

.wind-dir {
    border-right: none;
}

.wind-spd {
    border-left: none;
}

.separator {
    background-color: var(--input-yellow);
    border-top: 2px solid var(--input-yellow-border);
    border-bottom: 2px solid var(--input-yellow-border);
    color: #451a03;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: none;
    font-weight: 700;
    font-size: 0.9rem;
}

[data-theme="dark"] .separator {
    color: #fef08a;
}



.static-value {
    text-align: center;
    color: #d1d5db;
    font-size: 0.8rem;
    padding-top: 0.8rem;
    /* Center with input field */
}

/* Time Card Styling */
.time-grid {
    display: flex;
    flex-wrap: wrap;
    /* Allow items to wrap if space is tight */
    justify-content: center;
    /* Center items when wrapped */
    gap: 1rem;
}

.flight-time-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 200px;
    /* Flex grow, shrink, min-width */
    min-width: 0;
    /* Allow shrinking below min content size */
}

/* .zulu-container used to be here, removed empty rule */


/* Make the clock fluid */
.digital-clock {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    /* Responsive font size */
    font-weight: 700;
    color: var(--primary-accent);
    background-color: var(--input-yellow);
    border: 2px solid var(--border-color);
    padding: 0.5rem;
    text-align: center;
    letter-spacing: 2px;
    width: 100%;
}

.departure-container {
    /* Full width of the left column */
    width: 100%;
}

.departure-container input {
    /* Ensure input fills the container */
    width: 100%;
    height: 3rem;
    /* Match visual weight */
    text-align: center;
    font-size: 1.2rem;
}

.departure-container input:invalid {
    border-color: #ef4444;
    /* Red border for invalid */
    color: #ef4444;
}

/* Removed empty valid block */

.fine-print {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 0.3rem;
    font-style: italic;
    min-height: 1.2em;
    /* Reserve space */
}

.flight-time-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1 1 200px;
    min-width: 0;
}

.ete-eta-dist-container {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex: 2 1 250px;
    min-width: 0;
}

.ete-box,
.eta-box,
.dist-box {
    flex: 1;
    min-width: 0;
}

/* Adjust labels for better stacking look */
.flight-time-left label,
.ete-eta-container label {
    margin-bottom: 0.3rem;
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
}

.ete-box,
.eta-box {
    width: 100%;
}

.ete-box input,
.eta-box input,
.dist-box input {
    text-align: center;
    width: 100%;
    height: 3rem;
    /* Match height of other inputs in this section */
    font-size: 1.2rem;
}

.fuel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    align-items: center;
}

.span-2 {
    grid-column: span 2;
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

.total-label {
    font-weight: 700;
    color: var(--primary-accent);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    text-align: left;
    padding: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 0.4rem;
}

.total-row input {
    font-weight: 700;
    background-color: var(--output-total-bg);
    border-color: var(--border-color);
    color: var(--primary-accent);
}

.perf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.perf-item-wrapper {
    display: flex;
    flex-direction: column;
}

.perf-item-wrapper .fine-print {
    text-align: left;
    margin-top: 0.2rem;
}

.rwy-status-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rwy-status-wrapper input {
    flex: 1;
}

.rwy-safety-indicator {
    font-size: 0.75rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.rwy-safety-indicator.ok {
    color: #22c55e;
}

.rwy-safety-indicator.ok::before {
    content: "✓";
    font-style: normal;
    font-weight: bold;
}

.rwy-safety-indicator.warn {
    color: #ef4444;
}

.rwy-safety-indicator.warn::before {
    content: "✗";
    font-style: normal;
    font-weight: bold;
}

/* Action Button Group */
.action-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.action-btn {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    line-height: 1.2;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    text-align: center;
    flex: 1;
    height: 5rem;
}

.action-btn:hover {
    background-color: var(--input-yellow);
    color: #451a03;
    transform: translateY(-2px);
}

[data-theme="dark"] .action-btn:hover {
    color: #fef08a;
    /* Light yellow text for contrast */
}

/* Aircraft Selection & Dropdown */
.aircraft-menu-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
}

.dropdown-menu.hidden {
    display: none;
}

.dropdown-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    font-family: inherit;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--input-yellow);
    color: #451a03;
}

[data-theme="dark"] .dropdown-item:hover {
    color: #fef08a;
    /* Light yellow text for contrast */
}

.dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.2rem 0;
}

.dropdown-placeholder {
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.85rem;
}

.add-item {
    font-weight: 600;
    color: var(--primary-accent);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    visibility: visible;
    transition: all 0.2s;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-card {
    background-color: var(--card-bg);
    padding: 2rem;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-card.large-modal {
    max-width: 800px;
}

.modal-card.small-modal {
    max-width: 350px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--input-yellow);
    padding-bottom: 0.5rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--primary-accent);
    text-transform: uppercase;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

.modal-body label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.action-btn.secondary {
    background-color: transparent;
    border-color: var(--text-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

.action-btn.secondary:hover {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.action-btn.primary {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
}

/* Fix Font for Select Button */
#select-aircraft-btn {
    font-family: 'Rajdhani', sans-serif;
}

.action-btn.danger {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    background-color: transparent;
    border-color: #ef4444;
    color: #ef4444;
}

.action-btn.danger:hover {
    background-color: #ef4444;
    color: white;
}

/* Modal List View Styles */
.aircraft-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.aircraft-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

.ac-info {
    font-weight: 700;
    flex-grow: 1;
    margin-left: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Leg List Item */
.leg-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.leg-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
    color: var(--primary-accent);
}

.summary-section {
    margin-bottom: 1.5rem;
}

.summary-section h4 {
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--input-yellow);
}

/* Status Indicators */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.status-ok {
    color: #22c55e;
    /* Green */
}

.status-warn {
    color: #ef4444;
    /* Red */
}

.ac-controls {
    display: flex;
    gap: 0.5rem;
}

.drag-handle {
    cursor: grab;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.edit-btn {
    padding: 0.4rem;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
}

.edit-btn:hover {
    color: var(--primary-accent);
}

.full-width {
    width: 100%;
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Help Tooltip Styles */
.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-header-flex h2 {
    margin-bottom: 0;
}

.help-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#help-btn {
    color: var(--text-secondary);
    transition: color 0.2s;
    cursor: pointer;
}

#help-btn:hover,
#help-btn.active {
    color: var(--primary-accent);
}

.help-tooltip {
    position: absolute;
    top: 100%;
    /* Below the button */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 1rem;
    border: 1px solid var(--primary-accent);
    box-shadow: var(--shadow-md);
    font-size: 0.85rem;
    line-height: 1.4;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    text-align: left;
    border-radius: 4px;
}

/* Show on Hover or Active class */
.help-wrapper:hover .help-tooltip,
.help-tooltip.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0px);
    /* Slide up slightly */
}

/* Arrow for Tooltip (Top) */
.help-tooltip::after {
    content: "";
    position: absolute;
    bottom: 100%;
    /* Top of tooltip */
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--primary-accent) transparent;
}

.speed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    align-items: center;
}

/* Weather Loading Indicator */
.weather-status {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
    min-height: 1em;
}

.weather-status .spinner {
    width: 10px;
    height: 10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.weather-status.success {
    color: #22c55e;
}



.weather-status.error {
    color: #ef4444;
}

/* Clock Section */
.clock-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.clock-wrapper {
    position: relative;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 2.5rem;
}

/* Background Label (Watermark) */
.clock-bg-label {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-secondary);
    opacity: 0.07;
    pointer-events: none;
    z-index: 1;
    letter-spacing: 2px;
    white-space: nowrap;
}

/* Ensure digital clock is on top */
.digital-clock {
    z-index: 2;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 1.5rem !important;
}

.digital-clock.local-clock {
    color: var(--primary-accent);
}

/* Styled Select */
.tz-select-wrapper {
    margin-top: 0.5rem;
}

.styled-select {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 0;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1em;
}

.styled-select:hover,
.styled-select:focus {
    border-color: var(--primary-accent);
    color: var(--text-primary);
    outline: none;
}

.styled-select option {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 3000;
}

.toast {
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    opacity: 1;
}

.toast.hiding {
    animation: fadeOut 0.3s forwards;
}

.toast-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-success {
    border-left: 5px solid #22c55e;
}

.toast-error {
    border-left: 5px solid #ef4444;
}

.toast-info {
    border-left: 5px solid var(--primary-accent);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

[data-theme="dark"] .toast {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* Make table rows clickable */
.summary-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.summary-row:hover {
    background-color: rgba(251, 191, 36, 0.2);
    /* Light yellow tint */
}