/* Custom styles for ABTI website */

/* General styles */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

body {
    font-family: 'Source Sans Pro', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #363636;
    background-color: #F8F8F0;
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
}

.content-area {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Crimson Text', Georgia, serif;
}

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

a:hover {
    color: #0052a3;
    text-decoration: none;
}

.btn-primary {
    background-color: #003366;
    border-color: #003366;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #0052a3;
    border-color: #0052a3;
}

.btn-outline-primary {
    color: #003366;
    border-color: #003366;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #003366;
    border-color: #003366;
}

/* Header styles */
.header-container {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: #004080;
    color: white;
}

/* Navigation styles */
.navigation-link {
    position: relative;
}

.navigation-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #e74c3c;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navigation-link:hover::after {
    width: 80%;
}

/* Card styles */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.1);
}

/* Footer styles */
footer {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
}

footer * {
    box-sizing: border-box;
}

footer a {
    color: #E8E8E0;
}

footer a:hover {
    color: #FFFFFF;
}

/* Breadcrumb styles */
.breadcrumb-item + .breadcrumb-item::before {
    content: "|";
    color: rgba(255, 255, 255, 0.5);
    padding: 0 10px;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navigation-menu {
        flex-direction: column;
    }
    
    .navigation-link {
        padding: 10px 15px;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #B8860B;
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #003366;
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Chatbot styles */
.chat-container {
    background-color: #f9f9f9;
    border-radius: 8px;
}

.bot-avatar, .user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

.user-avatar {
    background-color: #003366;
    color: white;
}

.bot-response, .user-response {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    word-wrap: break-word;
}

/* Hero section styles */
.hero-section {
    background: linear-gradient(135deg, #003366, #004080);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,0 L100,100 M100,0 L0,100" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    z-index: 0;
}

.hero-title, .hero-description {
    position: relative;
    z-index: 1;
}

/* Sticky navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Form styles */
.form-control:focus {
    border-color: #003366;
    box-shadow: 0 0 0 0.25rem rgba(0, 51, 102, 0.25);
}

/* Table styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #003366;
    color: white;
    border: none;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Notification styles */
.notification {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}