@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --mystic-dark: #050505;
    --mystic-purple: #2e1065;
    --mystic-gold: #fbbf24;
    --mystic-accent: #818cf8;
}

body {
    background-color: var(--mystic-dark);
    font-family: 'Inter', sans-serif;
    color: #e2e8f0;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 50% 50%, #1a103c 0%, #000000 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .mystic-font {
    font-family: 'Cinzel', serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #4c1d95; 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6d28d9; 
}

/* Glassmorphism Card */
.mystic-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.mystic-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 40px rgba(88, 28, 135, 0.3);
}

/* Navigation Sidebar (Hidden by default on mobile) */
.nav-sidebar {
    height: 100vh;
    width: 60px;
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: width 0.3s ease;
}

.nav-sidebar:hover {
    width: 200px;
}

.nav-sidebar:hover .nav-text {
    opacity: 1;
    display: inline-block;
}

.nav-item {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    padding-left: 20px; /* Align icon */
}

.nav-item:hover, .nav-item.active {
    color: var(--mystic-gold);
    background: rgba(255,255,255,0.05);
    border-left: 3px solid var(--mystic-gold);
}

.nav-icon {
    font-size: 1.2rem;
    min-width: 20px;
    text-align: center;
}

.nav-text {
    opacity: 0;
    margin-left: 1rem;
    transition: opacity 0.2s ease 0.1s;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.5); }
}

.glow-effect {
    animation: pulse-glow 3s infinite;
}

.page-container {
    margin-left: 60px; /* Match sidebar width */
    min-height: 100vh;
    padding: 2rem;
    max-width: 1400px;
}

/* Tool Specific Styles */
canvas.sigil-canvas {
    background-color: #000;
    border: 2px solid #4c1d95;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(76, 29, 149, 0.3);
}
