:root {
    /* Color Palette */
    --bg-color: #0f111a;
    --text-primary: #ffffff;
    --text-secondary: #94a1b2;
    --accent-color: #7f5af0;
    --accent-hover: #9c80f2;
    --glass-bg: rgba(22, 22, 26, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --btn-bg: rgba(255, 255, 255, 0.05);
    --btn-bg-hover: rgba(255, 255, 255, 0.1);
    --success-color: #2cb67d;
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Variables */
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(127, 90, 240, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(44, 182, 125, 0.05) 0%, transparent 50%);
    overflow-x: hidden;
    position: relative;
    padding: 2rem;
}

/* Background Blobs for Glassmorphism effect */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color), #dd58d6);
    top: 10%;
    left: 10%;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #2cb67d, #0eb5d4);
    bottom: -10%;
    right: 5%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-30px) scale(1.05); }
}

/* Layout Elements */
.app-container {
    width: 100%;
    max-width: 800px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-header {
    text-align: center;
    color: var(--text-secondary);
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.logo-area svg {
    color: var(--accent-color);
}

.logo-area h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #fff, #b8c1ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Toolbar */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    gap: 0.5rem;
}

.toolbar-group {
    display: flex;
    gap: 0.25rem;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--glass-border);
    margin: 0 0.5rem;
}

.tool-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    outline: none;
}

.tool-btn:hover {
    background: var(--btn-bg-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tool-btn:active {
    transform: translateY(0);
}

/* Text Area */
.textarea-container {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

textarea {
    width: 100%;
    min-height: 250px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1.5rem;
    resize: vertical;
    outline: none;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

/* Scrollbar styling */
textarea::-webkit-scrollbar {
    width: 8px;
}
textarea::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.status-bar {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
}

/* Actions */
.actions-area {
    display: flex;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(127, 90, 240, 0.39);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 90, 240, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    background: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(44, 182, 125, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .app-header h1 {
        font-size: 2rem;
    }
    
    body {
        padding: 1rem;
    }
    
    .toolbar {
        justify-content: center;
    }
    
    .toolbar-divider {
        display: none;
    }
    
    .actions-area {
        justify-content: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
