/* MindGuide AI - Styles */
:root {
    --emerald-glow: rgba(52, 211, 153, 0.3);
    --cyan-glow: rgba(34, 211, 238, 0.3);
    --purple-glow: rgba(168, 85, 247, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[x-cloak] {
    display: none !important;
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.modal-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Logo Glow Effect */
.logo-glow {
    box-shadow: 0 0 30px var(--emerald-glow);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--emerald-glow); }
    50% { box-shadow: 0 0 40px var(--cyan-glow); }
}

/* Chat Bubbles */
.chat-bubble-user {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble-ai {
    background: rgba(51, 65, 85, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 4px;
}

/* Message Animation */
.message-appear {
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Quick Action Buttons */
.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 8px;
    color: #34d399;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
    transform: translateY(-1px);
}

/* Send Button */
.send-btn {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--emerald-glow);
}

.send-btn:not(:disabled):active {
    transform: scale(0.98);
}

/* Preset Buttons */
.preset-btn {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    color: #a5b4fc;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Beck Cards */
.beck-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.beck-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.beck-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.6;
    resize: none;
    transition: all 0.2s ease;
}

.beck-textarea:focus {
    outline: none;
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1);
}

.beck-textarea::placeholder {
    color: #64748b;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.7);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .glass-panel {
        min-height: 400px;
    }
}

/* Selection Color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: white;
}

/* Focus Outline */
*:focus-visible {
    outline: 2px solid rgba(52, 211, 153, 0.5);
    outline-offset: 2px;
}

/* Smooth Transitions */
button, input, textarea, select {
    transition: all 0.2s ease;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
