:root {
    --navy-blue: #003366;
    --ocean-blue: #0066cc;
    --light-blue: #4da6ff;
    --sea-green: #20b2aa;
    --gold: #ffd700;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bg-navy {
    background-color: var(--navy-blue) !important;
}

.text-navy {
    color: var(--navy-blue) !important;
}

.btn-navy {
    background-color: var(--navy-blue);
    color: white;
    border: none;
}

.btn-navy:hover {
    background-color: var(--ocean-blue);
    color: white;
}

.hero-section {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--ocean-blue) 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 4rem;
    line-height: 1;
}

.course-card {
    background: white;
    border-radius: 15px;
    border: 2px solid var(--light-blue);
    transition: all 0.3s ease;
}

.course-card:hover {
    border-color: var(--navy-blue);
    box-shadow: 0 10px 25px rgba(0,51,102,0.2);
}

.course-icon {
    font-size: 3rem;
    line-height: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--ocean-blue);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

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

.about-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.about-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tech-icon {
    font-size: 3rem;
    line-height: 1;
}

.stat-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 1.1rem;
}

.contact-info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 3rem;
    line-height: 1;
}

.contact-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
}

#footer h5, #footer h6 {
    margin-bottom: 1rem;
}

#footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--light-blue) !important;
}

#footer a:hover {
    color: var(--light-blue) !important;
}

.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 2rem auto;
}

.login-icon {
    font-size: 4rem;
    line-height: 1;
}

.form-control:focus {
    border-color: var(--ocean-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.alert-info {
    background-color: #e7f3ff;
    border-color: var(--light-blue);
    color: var(--navy-blue);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .feature-icon, .course-icon {
        font-size: 2.5rem;
    }
}

.ai-chat-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.chat-header {
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.status-indicator .badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.ai-message .message-avatar {
    background: var(--ocean-blue);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: var(--sea-green);
    margin-right: 0;
    margin-left: 1rem;
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-text {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    line-height: 1.6;
}

.user-message .message-text {
    background: var(--navy-blue);
    color: white;
}

.message-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
    padding: 0 0.5rem;
}

.btn-voice {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ocean-blue), var(--light-blue));
    border: none;
    color: white;
    font-size: 3rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,102,204,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-voice:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,102,204,0.4);
}

.btn-voice.recording {
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
    animation: recordingPulse 1.5s infinite;
}

@keyframes recordingPulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(220,53,69,0.3);
    }
    50% {
        box-shadow: 0 5px 40px rgba(220,53,69,0.6);
    }
}

.voice-icon {
    font-size: 3rem;
    line-height: 1;
}

.voice-text {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.voice-status {
    min-height: 24px;
    font-size: 0.9rem;
}

.chat-controls {
    border-top: 1px solid #dee2e6;
}

.btn-outline-navy {
    border-color: var(--navy-blue);
    color: var(--navy-blue);
}

.btn-outline-navy:hover {
    background-color: var(--navy-blue);
    color: white;
}

.quick-phrases .btn {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .chat-messages {
        height: 400px;
    }

    .message-content {
        max-width: 80%;
    }

    .btn-voice {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .voice-text {
        font-size: 0.65rem;
    }
}