:root {
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.3);
    --accent: #9333ea;
    --secondary: #db2777;
    --bg-main: #ffffff;
    --bg-dark: #f8fafc;
    --card-bg: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --glass: rgba(255, 255, 255, 0.9);
    --radius-lg: 24px;
    --radius-md: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Bright Animated Background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
}

.bg-blobs {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(100px);
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(79, 70, 229, 0.15);
    border-radius: 50%;
    animation: move 25s infinite alternate;
}

.blob-2 { background: rgba(219, 39, 119, 0.1); left: 60%; top: 30%; }

@keyframes move {
    from { transform: translate(-5%, -5%) rotate(0deg); }
    to { transform: translate(10%, 10%) rotate(180deg); }
}

/* App Layout - Sidebar + Content */
.main-layout {
    display: flex;
    min-height: 100vh;
}

aside {
    width: 280px;
    height: 100vh;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    position: fixed;
    padding: 2rem;
    z-index: 1000;
}

main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem 4rem;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modern Navigation Menu */
.side-nav {
    margin-top: 3rem;
}

.nav-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: 0.2s;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.nav-item:hover, .nav-item.active {
    background: #f1f5f9;
    color: var(--primary);
    box-shadow: none;
    transform: translateX(5px);
}

/* Tool Grid - Professional Menu Look */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: white;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
    border-color: var(--primary);
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.tool-card:hover .tool-icon {
    background: var(--primary-gradient);
    color: white;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Tool View Styles */
.tool-view {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

textarea, input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    box-shadow: 0 10px 20px var(--primary-glow);
    transform: scale(1.02);
}

/* Responsive */
@media (max-width: 1024px) {
    aside { width: 80px; padding: 1.5rem 1rem; }
    aside .nav-text, aside .nav-group-title, aside .logo span { display: none; }
    main { margin-left: 80px; padding: 2rem; }
}
