html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

:root {
    /* OVK Official Palette */
    --ovk-blue: #0059A9;
    --ovk-green: #00964E;
    --ovk-white: #FFFFFF;
    /* UI Structure */
    --glass-bg: rgba(0, 89, 169, 0.9); /* OVK Blue with slight transparency */
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: var(--ovk-white);
}

.ai-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f7f9; /* Clean light gray/white background for contrast */
}

.ai-card {
    width: 100%;
    max-width: 900px;
    background: var(--ovk-blue);
    border-radius: 8px; /* Professional sharp-rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ovk-blue);
}

.ai-header {
    padding: 18px;
    background: var(--ovk-white);
    border-bottom: 4px solid var(--ovk-green); /* OVK Green Accent */
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ovk-blue); /* Blue text on white header */
    text-transform: uppercase;
}

#chatWindow {
    height: 500px;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--ovk-blue); /* Solid Blue Chat Area */
}

/* Chat Bubbles */
.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.user-msg {
    align-self: flex-end;
    background: var(--ovk-green); /* Green for User */
    color: var(--ovk-white);
    border-bottom-right-radius: 2px;
}

.ai-msg {
    align-self: flex-start;
    background: var(--ovk-white); /* White for AI */
    color: var(--ovk-blue); /* Blue text */
    border-bottom-left-radius: 2px;
}

/* Footer / Input Area */
.ai-footer {
    padding: 20px;
    display: flex;
    gap: 12px;
    background: #e9eff5; /* Light blue-ish white footer */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.ai-input {
    flex-grow: 1;
    background: var(--ovk-white);
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 12px 15px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

    .ai-input:focus {
        border-color: var(--ovk-blue);
    }

.ai-send-btn {
    background: var(--ovk-green);
    border: none;
    border-radius: 4px;
    padding: 0 35px;
    color: var(--ovk-white);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

    .ai-send-btn:hover {
        background: #007a3f; /* Darker green on hover */
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}