@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-base: #f3f6f9;
    --bg-surface: rgba(255, 255, 255, 0.45);
    --bg-surface-hover: rgba(255, 255, 255, 0.65);
    --border-color: rgba(255, 255, 255, 0.5);
    --border-color-glow: rgba(2, 132, 199, 0.25);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Light Theme Status Colors */
    --status-pending: #0284c7;
    --status-pending-glow: rgba(2, 132, 199, 0.15);
    
    --status-in-progress: #d97706;
    --status-in-progress-glow: rgba(217, 119, 6, 0.15);
    
    --status-completed: #10b981;
    --status-completed-glow: rgba(16, 185, 129, 0.15);
    
    --status-overdue: #dc2626;
    --status-overdue-glow: rgba(220, 38, 38, 0.15);
    
    --status-none: rgba(148, 163, 184, 0.12);

    /* Gradients & Shadows for Light theme */
    --cyber-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    --accent-gradient: linear-gradient(135deg, #0f172a 0%, #0284c7 50%, #dc2626 100%);
    --panel-glow: 0 8px 32px 0 rgba(31, 38, 135, 0.04);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.25);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(2, 132, 199, 0.4);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--card-shadow), var(--panel-glow);
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.glass-panel:hover {
    border-color: rgba(2, 132, 199, 0.3);
    box-shadow: var(--card-shadow), 0 12px 40px rgba(31, 38, 135, 0.1);
    transform: translateY(-2px);
}

/* Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-left: 4px solid #0284c7;
}

.brand-section h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

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

.time-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(2, 132, 199, 0.05);
    padding: 0.6rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(2, 132, 199, 0.15);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(31, 38, 135, 0.03);
}

.time-display span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--cyber-gradient);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(2, 132, 199, 0.35);
    color: #0284c7;
}

/* Metric Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    border-top: 2px solid transparent;
}

/* Add custom top border lights to the metrics cards for innovation feeling */
.metrics-grid .metric-card:nth-child(1) { border-top-color: #10b981; } /* Completion */
.metrics-grid .metric-card:nth-child(2) { border-top-color: #94a3b8; } /* Total */
.metrics-grid .metric-card:nth-child(3) { border-top-color: #10b981; } /* Completed */
.metrics-grid .metric-card:nth-child(4) { border-top-color: #ffb703; } /* In Progress */
.metrics-grid .metric-card:nth-child(5) { border-top-color: #ff0055; } /* Overdue */

.metric-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
}

.metric-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(31, 38, 135, 0.04);
}

/* Progress Radial */
.progress-ring-container {
    position: relative;
    width: 66px;
    height: 66px;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Calendar Grid */
.scheduler-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--cyber-gradient);
    border-radius: 4px;
}

.legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 5px;
}

.legend-dot.pending {
    background: var(--status-pending);
    box-shadow: 0 0 10px var(--status-pending-glow);
}
.legend-dot.in-progress {
    background: var(--status-in-progress);
    box-shadow: 0 0 10px var(--status-in-progress-glow);
}
.legend-dot.completed {
    background: var(--status-completed);
    box-shadow: 0 0 10px var(--status-completed-glow);
}
.legend-dot.overdue {
    background: var(--status-overdue);
    box-shadow: 0 0 10px var(--status-overdue-glow);
}
.legend-dot.unscheduled {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

/* Scheduler Table Layout */
.grid-container {
    overflow-x: auto;
    width: 100%;
    border-radius: 12px;
}

.schedule-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: -10px;
}

.schedule-grid th, .schedule-grid td {
    padding: 0.85rem 0.5rem;
    text-align: center;
    vertical-align: middle;
}

.schedule-grid th {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 0.75rem;
}

.schedule-grid th.machine-col-header {
    text-align: left;
    width: 280px;
    padding-left: 1rem;
}

.schedule-grid tbody tr {
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
}

.schedule-grid tbody tr:hover {
    background: rgba(2, 132, 199, 0.04);
}

.schedule-grid td.machine-name-cell {
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    padding-left: 1.25rem;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}

.schedule-grid tbody tr:hover td.machine-name-cell {
    border-left-color: #0284c7;
    color: var(--text-primary);
}

.schedule-grid td.machine-name-cell span.interval-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.18);
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(31, 38, 135, 0.02);
}

/* Machine Progress Fill (Visual Innovation bar) */
.machine-progress-bar {
    width: 110px;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
    display: flex;
}

.machine-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f2fe 0%, #10b981 100%);
    width: 0%;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(0, 242, 254, 0.4);
}

/* Current Month column highlights */
.schedule-grid th.current-month {
    color: #ef4444;
    position: relative;
}

.schedule-grid th.current-month::after {
    content: 'CURRENT';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    background: #ef4444;
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.schedule-grid td.current-month {
    background: rgba(239, 68, 68, 0.05);
    position: relative;
}

.schedule-grid td.current-month::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-left: 1.5px dashed rgba(220, 38, 38, 0.3);
    border-right: 1.5px dashed rgba(220, 38, 38, 0.3);
    pointer-events: none;
}

/* Interactive Cell PM badge */
.pm-cell {
    position: relative;
    cursor: pointer;
}

.pm-indicator {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    background: var(--status-none);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 2px 4px rgba(31, 38, 135, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pm-indicator.unscheduled {
    background: transparent;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    color: var(--text-muted);
}

.pm-indicator.unscheduled:hover {
    background: rgba(2, 132, 199, 0.06);
    border-color: rgba(2, 132, 199, 0.4);
    color: #0284c7;
    transform: scale(1.1) translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.pm-indicator.pending {
    background: rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.3);
    color: #0284c7;
    box-shadow: 0 2px 8px var(--status-pending-glow);
}

.pm-indicator.in-progress {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.3);
    color: #d97706;
    box-shadow: 0 2px 8px var(--status-in-progress-glow);
}

.pm-indicator.completed {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    box-shadow: 0 2px 8px var(--status-completed-glow);
}

.pm-indicator.overdue {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
    box-shadow: 0 2px 10px var(--status-overdue-glow);
    animation: pulse-glow 2s infinite;
}

.pm-cell:hover .pm-indicator:not(.unscheduled) {
    transform: scale(1.18) translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 38, 135, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

.schedule-grid tbody tr td:last-child {
    border-top-right-radius: 14px;
    border-bottom-right-radius: 14px;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 85, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 85, 0);
    }
}

/* Modal Overlay & Card styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 5, 12, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(2, 132, 199, 0.2);
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.15), 0 0 30px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    width: 92%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.04) 0%, transparent 100%);
}

.modal-title h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-title p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #0284c7;
}

/* Forms & Fields */
.modal-body {
    padding: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input, select, textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.12);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

/* Checklist Points Custom styling */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.25rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.checklist-item input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checklist-item input[type="checkbox"]:checked {
    background: #10b981;
    border-color: #10b981;
}

.checklist-item input[type="checkbox"]:checked::after {
    content: '✓';
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 800;
}

.checklist-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.checklist-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    color: var(--text-muted);
}

.modal-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
}

/* Logs and tables */
.logs-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.search-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 420px;
}

.search-wrapper input {
    width: 100%;
    padding-left: 2.5rem;
    border-radius: 12px;
}

.search-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    opacity: 0.5;
}

.filter-controls {
    display: flex;
    gap: 0.75rem;
}

.filter-controls select {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

/* Detail logs list table */
.logs-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: inset 0 1px 4px rgba(31,38,135,0.05);
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.logs-table th, .logs-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.logs-table th {
    background: rgba(255, 255, 255, 0.75);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.logs-table tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.logs-table tr:last-child {
    border-bottom: none;
}

.logs-table tr:hover {
    background: rgba(2, 132, 199, 0.04);
}

/* Badge glows */
.badge {
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.02em;
}

.badge.pending {
    background: rgba(2, 132, 199, 0.06);
    color: #0284c7;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.badge.in-progress {
    background: rgba(217, 119, 6, 0.06);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge.completed {
    background: rgba(16, 185, 129, 0.06);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.overdue {
    background: rgba(220, 38, 38, 0.06);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Dynamic Fade Animation */
.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@media (max-width: 1024px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .header-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(2, 132, 199, 0.25);
    box-shadow: 0 8px 24px rgba(31, 38, 135, 0.08);
    color: var(--text-primary);
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: auto;
    animation: toast-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: opacity 0.3s ease;
}

.toast.error {
    border-color: rgba(220, 38, 38, 0.3);
    color: #dc2626;
    background: rgba(254, 242, 242, 0.94);
}

.toast.success {
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    background: rgba(240, 253, 250, 0.94);
}

@keyframes toast-in {
    to { transform: translateY(0); opacity: 1; }
}
