:root {
    --bg-color: #0d0e15;
    --sidebar-bg: #141621;
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a6bc;
    --primary-accent: #6366f1;
    --primary-hover: #4f46e5;
    --glow-color: rgba(99, 102, 241, 0.5);
    
    --brand-font: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--brand-font);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden; /* App-like feel */
}

/* Typography & Buttons */
h1, h2, h3, h4 { font-weight: 600; }

.btn {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--brand-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-primary {
    background-color: var(--primary-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-glow:hover {
    box-shadow: 0 0 20px var(--glow-color);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 10px;
}

.brand h1 {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-links a.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-accent);
}

.pro-link {
    position: relative;
    overflow: hidden;
}

.badge {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-weight: 700;
    margin-left: auto;
}

.upgrade-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.upgrade-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #a0a6bc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upgrade-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.upgrade-card .btn {
    width: 100%;
}

/* Main Content area */
.main-content {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    background: rgba(13, 14, 21, 0.6);
    backdrop-filter: blur(10px);
}

.top-nav h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* Beautiful Animated Background Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.4);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.3);
    bottom: 0;
    right: 20%;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.3);
    top: 40%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.1); }
    100% { transform: translate(-30px, -50px) scale(0.9); }
}

/* Generator Canvas */
.preview-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.glass-card {
    width: 380px;
    padding: 2rem;
    border-radius: 16px;
    /* Default glass styles */
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.2s ease-out;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #10b981);
}

.info .name {
    font-weight: 600;
    font-size: 1.1rem;
}

.info .role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-body {
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    gap: 1rem;
}

/* Editor Panel */
.editor-panel {
    position: absolute;
    right: 2rem;
    top: 6rem;
    width: 320px;
    background: rgba(20, 22, 33, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 10;
    color: white;
}

.editor-header h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sliders */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

input[type=color] {
    -webkit-appearance: none;
    border: none;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}
input[type=color]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type=color]::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.code-output {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.code-header h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.code-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--brand-font);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tab-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.tab-btn .badge {
    font-size: 0.55rem;
    padding: 0.1rem 0.3rem;
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--primary-accent);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-copy:hover {
    color: var(--primary-hover);
}

pre {
    padding: 1rem;
    margin: 0;
    font-size: 0.8rem;
    color: #a0a6bc;
    white-space: pre-wrap;
    font-family: monospace;
}
