:root {
    --primary-color: #4f46e5;
    --secondary-color: #9333ea;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-color: #1e293b;
    --text-muted: #64748b;
    --accent-glow: rgba(79, 70, 229, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.navbar {
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 2rem;
    position: sticky;
    top: 1.5rem;
    z-index: 100;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
}

.btn {
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cbd5e1; /* Darker border for visibility (Slate 300) */
    border-radius: 12px;
    color: var(--text-color);
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.2s;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--accent-glow), inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.card {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

th {
    padding: 1rem;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 1.25rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

tr:last-child td {
    border-bottom: none;
}

.chat-box {
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    padding: 1rem 1.25rem;
    border-radius: 18px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.user {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.message.bot {
    align-self: flex-start;
    background: white;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.progress-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    height: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-badge {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 6px;
    position: relative;
    top: -8px;
    left: -4px;
    font-weight: 700;
}

.result-item {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
