:root {
    /* Primary Colors */
    --primary-aqua: rgb(106, 245, 203);
    --primary-purple: rgb(138, 43, 226);
    --primary-blue: rgb(0, 191, 255);
    --primary-pink: rgb(255, 20, 147);
    
    /* Background Colors */
    --bg-dark-main: #0a0a0a;
    --bg-editor-panel: rgba(255, 255, 255, 0.03);
    --bg-header: rgba(255, 255, 255, 0.05);
      --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    
      --bg-light: #999999;
    --bg-lighter: #f1f1f1;
    /* Text Colors */
    --text-primary: white;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-placeholder: rgba(255, 255, 255, 0.3);
    
    /* Border Colors */
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.2);
    
    /* Button Colors */
    --button-bg: rgba(255, 255, 255, 0.1);
    --button-bg-hover: rgba(255, 255, 255, 0.2);
    
    /* Indicator Colors */
    --indicator-success: rgba(255, 85, 0, 0.7);
    
    /* Shadow Colors */
    --shadow-dark: rgba(0, 0, 0, 0.37);
    
    /* Scrollbar Colors */
    --scrollbar-track: rgba(255, 255, 255, 0.05);
    --scrollbar-thumb: rgba(255, 255, 255, 0.2);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
}

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

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
     background: var(--bg-light);
    position: relative;
}

/* Animated background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 94, 255, 0.6), transparent);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(64, 0, 255, 0.6), transparent);
    bottom: -5%;
    right: -5%;
    animation-delay: 7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.6), transparent);
    top: 40%;
    right: 10%;
    animation-delay: 14s;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(100px, -100px) scale(1.2);
    }
    50% {
        transform: translate(-50px, 100px) scale(0.9);
    }
    75% {
        transform: translate(80px, 50px) scale(1.1);
    }
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 98, 0, 0.5);
    border-radius: 50%;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Editor container */
.editor-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background:#1b1b1b;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.back-button {
   display: inline-block;
    padding: 16px 45px;
    background: rgba(25, 29, 30, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--bg-dark);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.bakk-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--bg-dark);
    color: var(--bg-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}
.back-button:hover::before {
    width: 300px;
    height: 300px;
}

.back-button:hover {
    color: var(--bg-dark);
    background-color: rgba(184, 197, 102, 0.039);
    transform: translateY(-2px);
}


.editor-wrapper {
    flex: 1;
    display: flex;
    gap: 20px;
    overflow: hidden;
}

.editor-panel {
    flex: 1;
    background: var(--bg-editor-panel);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px 0 var(--shadow-dark);
}

.editor-title {
   color: var(--bg-dark);
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1rem;
}

.editor-input {
    flex: 1;
    background: transparent;
    border: none;
   
   color: var(--bg-dark);
    font-size: 1rem;
    line-height: 1.8;
    resize: none;
    outline: none;
    font-family: 'Monaco', 'Menlo', monospace;
}

.stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.auto-save-indicator {
    color: var(--indicator-success);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.save-dot {
    width: 8px;
    height: 8px;
    background: var(--indicator-success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 768px) {
    .editor-wrapper {
        flex-direction: column;
    }

    .header {
        flex-direction: column;
        gap: 10px;
    }

    .editor-panel {
        padding: 20px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}