body {
    background-color: #030712;
    background-image:
        radial-gradient(circle at 50% -10%, rgba(6, 182, 212, 0.08), transparent 600px),
        radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.03), transparent 400px);
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    outline: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.45), 0 0 0 5px rgba(8, 145, 178, 0.16);
}

.glass-panel {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8),
                inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

.inner-canvas {
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.6);
}

.btn-premium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

.btn-premium:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.btn-emerald {
    background: linear-gradient(135deg, #05f0a6 0%, #10b981 100%);
    box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.3), inset 0 1px 0 0 rgba(255, 255, 255, 0.3);
}

.history-item,
.device-card,
.workspace-pill,
.dashboard-card {
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.history-item:hover,
.device-card:hover,
.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-1px);
}

.workspace-pill.active {
    background: rgba(8, 145, 178, 0.16);
    border-color: rgba(34, 211, 238, 0.32);
    color: #a5f3fc;
}

.timeline-section::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 30px;
    bottom: 6px;
    width: 1px;
    background: rgba(148, 163, 184, 0.12);
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.toast-enter {
    animation: toast-in 0.2s ease-out both;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.skeleton {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.45), rgba(51, 65, 85, 0.35), rgba(15, 23, 42, 0.45));
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
