:root {
    --bg-dark: #0f172a;
    --bg-glass: rgba(30, 41, 59, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --gradient: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--gradient);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

/* Background animated orbs for aesthetic */
body::before, body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
}

body::before {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: rgba(59, 130, 246, 0.15);
}

body::after {
    bottom: -10%;
    right: -10%;
    width: 30vw;
    height: 30vw;
    background: rgba(139, 92, 246, 0.15);
}

.app-container {
    display: flex;
    height: 100vh;
    padding: 1.5rem;
    gap: 1.5rem;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Sidebar */
.sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
}

.sidebar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.filters-container {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.filters-container select {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-primary);
    font-size: 0.75rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    text-align: center;
}

.filters-container select:focus {
    border-color: var(--accent);
}

.filters-container select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.plot-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Custom Scrollbar */
.plot-list::-webkit-scrollbar {
    width: 6px;
}
.plot-list::-webkit-scrollbar-track {
    background: transparent;
}
.plot-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Plot Item */
.plot-item {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plot-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-glass);
    transform: translateY(-2px);
}

.plot-item.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent);
}

.plot-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.sniep { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.badge.rniep { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.plot-type {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.plot-vertices {
    font-family: monospace;
    font-size: 0.95rem;
    word-break: break-all;
}

/* Main Stage */
.stage {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plot-frame {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: white;
    transition: opacity 0.3s ease;
}

.plot-frame.hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.welcome-msg {
    padding: 2rem 3rem;
    text-align: center;
}

.welcome-msg h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.welcome-msg p {
    color: var(--text-secondary);
}
