:root {
    --bg-dark: #121212;
    --paper: #e0d7c6;
    --ink: #1a1a1a;
    --charcoal: #2c2c2c;
    --accent: #d35400;
}

@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Outfit:wght@300;600&display=swap');

body {
    margin: 0; 
    font-family: 'Outfit', sans-serif;
    background: var(--bg-dark); 
    height: 100vh; 
    overflow: hidden;
    color: #fff;
}

.app-container { 
    display: flex; 
    height: 100vh; 
    background: radial-gradient(circle at center, #1e1e1e 0%, #000 100%);
}

.sidebar {
    width: 320px; 
    background: rgba(0, 0, 0, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header h2 {
    font-family: 'Indie+Flower', cursive;
    margin: 0;
    font-size: 24px;
}

.main-content { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    padding: 40px; 
    gap: 30px; 
}

.top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.branding h1 {
    font-family: 'Indie Flower', cursive;
    font-size: 32px;
    margin: 0;
}

.branding span { color: var(--accent); }

.tab-system {
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 10px 20px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border-radius: 30px; 
    cursor: pointer; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tab-btn.active { 
    background: var(--accent); 
    color: white; 
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(211, 84, 0, 0.3);
}

.canvas-container {
    flex: 1; 
    background: var(--paper); 
    border-radius: 8px;
    position: relative; 
    overflow: hidden; 
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border: 15px solid #000;
}

.paper-texture {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/handmade-paper.png');
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: multiply;
}

canvas { 
    width: 100%; 
    height: 100%; 
    mix-blend-mode: multiply;
    background: transparent;
}

.badge {
    position: absolute; 
    top: 25px; 
    left: 25px;
    padding: 6px 15px; 
    background: var(--ink); 
    color: white;
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
}

.controls-bar { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
}

.btn { 
    padding: 15px 40px; 
    border: none; 
    border-radius: 40px; 
    cursor: pointer; 
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:disabled { opacity: 0.3; cursor: not-allowed; }

.primary { background: var(--accent); color: white; }
.secondary { background: rgba(255,255,255,0.1); color: white; }
.danger { background: #c0392b; color: white; }

.scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.audio-card {
    background: rgba(255,255,255,0.03); 
    margin-bottom: 15px; 
    padding: 20px;
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.05);
}

.audio-card b {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    color: #888;
}

audio {
    filter: invert(100%) hue-rotate(180deg);
}