/* Antigravity Project Hub - Premium Modern Stylesheet */

:root {
    --bg-primary: #090d16;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --border-color: rgba(51, 65, 85, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --card-bg: rgba(15, 23, 42, 0.75);
    --card-border: rgba(51, 65, 85, 0.5);
}

html.light {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-glow: rgba(79, 70, 229, 0.15);
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: #e2e8f0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
    overflow-x: hidden;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

/* Modern Glassy Cards */
.glass-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 25px -5px var(--accent-glow);
}

/* Button glow */
.btn-glow {
    box-shadow: 0 4px 14px 0 var(--accent-glow);
}
.btn-glow:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* Code Diff Styling */
.diff-line-added {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-left: 3px solid #10b981;
}
.diff-line-removed {
    background-color: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border-left: 3px solid #f43f5e;
}
.diff-line-unchanged {
    color: var(--text-secondary);
}

/* Monaco container helper */
#monaco-container {
    width: 100%;
    height: 100%;
    min-height: 550px;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.toast-alert {
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}
@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Skeleton Loading State */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 37%, rgba(255, 255, 255, 0.03) 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
