:root {
    --primary: #4338ca;
    --primary-light: #6366f1;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Elements */
.bento-item {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.08);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.bento-wide {
    grid-column: span 2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

p {
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: #e0e7ff;
    color: var(--primary);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input Fields */
input, textarea {
    width: 100%;
    padding: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.hidden { display: none; }

/* Brand Typography & Icons */
.logo { 
    font-weight: 800; 
    font-size: 1.8rem; 
    letter-spacing: -1.5px; 
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 900;
    -webkit-text-fill-color: white;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.hero-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.hero h1 { 
    font-size: 5rem; 
    line-height: 1; 
    margin-bottom: 24px; 
    font-weight: 800; 
    letter-spacing: -4px; 
    color: var(--text-dark);
}

.text-gradient {
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bento-wide {
        grid-column: span 1;
    }

    h1 { font-size: 2.5rem; letter-spacing: -2px; }
    h2 { font-size: 1.8rem; }
    
    .logo { font-size: 1.4rem; }
    .logo-icon { width: 28px; height: 28px; font-size: 16px; }
}

/* Compact History Styles */
.history-list { 
    max-height: 400px; 
    overflow-y: auto; 
    padding-right: 8px; 
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item { 
    padding: 12px 16px; 
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.03); 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.history-item:hover { 
    background: white;
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.history-item.active { 
    background: white; 
    border-color: var(--primary); 
    box-shadow: 0 4px 20px rgba(67, 56, 202, 0.08);
}

.history-date { 
    font-size: 10px; 
    font-weight: 600;
    color: var(--text-light); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.history-preview { 
    font-size: 12px; 
    color: var(--text-dark); 
    font-weight: 500;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
