/* Modern Theme CSS - WCAG 2.1 Compliant */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #e09f00;
    /* Darkened for better contrast */
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --focus-color: #0a58ca;
    /* High contrast focus indicator */
    --text-on-gradient: #ffffff;
    --primary-gradient-start: #667eea;
    --primary-gradient-end: #764ba2;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

main {
    flex: 1;
}

/* Gradient Background */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navbar Enhancements */
.navbar {
    z-index: 1050 !important;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.polish-flag {
    height: 1.5rem;
    width: auto;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes flag-wave {
    0% {
        transform: rotate(0deg) scale(1);
    }

    10% {
        transform: rotate(-8deg) scale(1.05);
    }

    20% {
        transform: rotate(12deg) scale(0.98);
    }

    30% {
        transform: rotate(-10deg) scale(1.03);
    }

    40% {
        transform: rotate(8deg) scale(0.97);
    }

    50% {
        transform: rotate(-5deg) scale(1.02);
    }

    60% {
        transform: rotate(6deg) scale(0.99);
    }

    70% {
        transform: rotate(-4deg) scale(1.01);
    }

    80% {
        transform: rotate(3deg) scale(0.98);
    }

    90% {
        transform: rotate(-2deg) scale(1.01);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}


@keyframes flag-wave-fast {
    0% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-15deg) scale(1.08);
    }

    50% {
        transform: rotate(15deg) scale(0.95);
    }

    75% {
        transform: rotate(-12deg) scale(1.05);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-bar-hero .input-group {
    border-radius: 50px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.search-bar-hero .form-control {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.search-bar-hero .btn {
    padding: 1rem 2rem;
    border-radius: 0 50px 50px 0;
}

.search-bar-hero .input-group-text {
    padding: 0 1rem;
}

/* Card Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Smooth transitions for cards */
.card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background-color: #ffffff;
}

.card-body {
    color: #212529;
}

.card-title {
    color: #212529;
}

.card-title a {
    color: #212529 !important;
}

.card-title a:hover {
    color: #0d6efd !important;
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Badge Styling with WCAG contrast */
.badge {
    font-weight: 600;
    padding: 0.5em 0.8em;
    border-radius: 50px;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

.badge.bg-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}

.badge.bg-dark {
    background-color: #212529 !important;
    color: #ffffff !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* List Group Custom */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.25rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    color: #212529;
}

.list-group-item a {
    color: #212529;
    text-decoration: none;
}

.list-group-item:hover {
    background-color: #e7f1ff;
    padding-left: 1.5rem;
}

.list-group-item:hover a {
    color: #0d6efd;
}

.list-group-item:first-child {
    border-radius: 0;
}

.list-group-item:last-child {
    border-bottom: none;
    border-radius: 0;
}

/* Sticky Sidebar */
.sticky-top {
    position: sticky;
    z-index: 1010;
}

/* Advertisement Show Page - Sticky Sidebar Cards */
/* Both cards stick together as a group */
aside {
    position: sticky;
    top: 80px;
    align-self: flex-start;
    z-index: 1010;
}

/* Individual cards inside sticky aside */
aside .card {
    position: relative;
}

/* Remove sticky from individual cards - let the whole aside be sticky */
aside .sticky-top {
    position: relative !important;
    top: 0 !important;
}

/* Responsive: disable sticky on mobile */
@media (max-width: 991.98px) {
    aside {
        position: relative !important;
        top: 0 !important;
    }
}

/* Empty State */
.text-center i.display-1 {
    opacity: 0.3;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border-radius: 8px;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    background-color: transparent;
    border-color: transparent;
    color: var(--secondary-color);
}

/* Footer */
.footer {
    background-color: #212529 !important;
    color: #f8f9fa;
}

.footer h2,
.footer h3 {
    color: #ffffff;
}

.footer .text-muted {
    color: #adb5bd !important;
}

.footer a {
    color: #dee2e6;
    text-decoration: underline;
}

.footer a:hover {
    color: #ffc107 !important;
    transition: color 0.3s ease;
}

.footer li {
    margin-bottom: 0.5rem;
}

/* Alert Improvements */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
    border: 1px solid #9ec5fe;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #a3cfbb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}

/* Dropdown Improvements */
.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item i {
    width: 20px;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

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

/* Warning button with high contrast */
.btn-warning {
    background-color: #f0ad00;
    border-color: #f0ad00;
    color: #000000;
    font-weight: 700;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: #d39e00;
    border-color: #d39e00;
    color: #000000;
}

/* Primary button */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0a58ca;
    border-color: #0a58ca;
    color: #ffffff;
}

/* Outline buttons */
.btn-outline-secondary {
    color: #495057;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

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

.btn-outline-primary:hover {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        border-radius: 0 0 30px 30px;
    }

    .search-bar-hero .form-control {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .search-bar-hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .sticky-top {
        position: relative !important;
    }
}

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .btn,
    .search-bar-hero {
        display: none !important;
    }

    .card {
        break-inside: avoid;
    }
}

/* Form Enhancements */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-label {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.input-group-text {
    border-radius: 0 8px 8px 0;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

/* WCAG 2.1 Accessibility - Focus Indicators */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus,
.card:focus,
.list-group-item:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.25);
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--dark-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: bold;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--focus-color);
}

/* Ensure sufficient contrast for links */
a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-thickness: 2px;
}

/* High contrast focus for interactive elements */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
    border-color: var(--focus-color);
}

/* Improve text contrast on gradient backgrounds */
.bg-gradient-primary {
    color: var(--text-on-gradient);
}

.bg-gradient-primary a {
    color: var(--text-on-gradient);
}

.bg-gradient-primary .text-warning {
    color: var(--warning-color) !important;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: underline;
}

.breadcrumb-item a:hover {
    color: #0a58ca;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: #6c757d;
}

.breadcrumb-item.active {
    color: #495057;
}

/* Image Enhancements */
.img-thumbnail {
    border-radius: 8px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.img-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* Visually Hidden utility for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure links have proper contrast */
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffc107;
}

/* Text muted should be readable */
.text-muted {
    color: #6c757d !important;
}

.text-muted a {
    color: #495057;
    text-decoration: underline;
}

.text-muted a:hover {
    color: #212529;
}

/* Card text */
.card-text {
    color: #6c757d;
}

/* Badge colors - already defined above */

/* Improve badge contrast */
.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Small text should have better contrast */
small,
.small {
    color: #495057;
}

.card small,
.card .small {
    color: #6c757d;
}

/* Ensure proper text color on light backgrounds */
.bg-light {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

.bg-white {
    background-color: #ffffff !important;
    color: #212529 !important;
}

/* Dark Mode Support - DISABLED for WCAG compliance */
/* Light mode only to ensure consistent contrast ratios */

/* Bottom Bar - Fixed to Bottom */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 1030;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    min-height: 60px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.bottom-bar .container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    margin: 0;
}

.bottom-bar .row {
    width: 100%;
    margin: 0;
}

.bottom-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    vertical-align: middle;
}

.bottom-bar-item i {
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
}

.bottom-bar-item span {
    line-height: 1;
    vertical-align: middle;
}

/* Left section - ensure items stay in one line */
.bottom-bar .col-12.col-lg-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .bottom-bar .col-12.col-lg-3:first-child {
        justify-content: flex-start;
    }

    .bottom-bar .col-12.col-lg-3:last-child {
        justify-content: flex-end;
    }
}

/* Greetings Bar - Vertical Chat Style */
.greetings-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 40px;
    margin: 0 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.greetings-bar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.greetings-bar:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Center column adjustment - fill space */
.bottom-bar .col-12.col-lg-6 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.greeting-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.greeting-item {
    display: inline-block;
    padding: 0 1rem;
    white-space: nowrap;
}

/* Messages are truncated with "..." if they don't fit */

/* Slide up from bottom animation - entry only */
@keyframes slideUpFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Slide up exit animation */
@keyframes slideUpExit {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Rotating animation for refresh button */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: rotate 1s linear infinite;
}


.bottom-bar .btn-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    vertical-align: middle;
    line-height: 1;
}

.bottom-bar .btn-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.bottom-bar .btn-info:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bottom-bar .btn-warning {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    vertical-align: middle;
    line-height: 1;
}

.bottom-bar .btn-warning:hover {
    background-color: #f0ad00;
    border-color: #f0ad00;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(240, 173, 0, 0.3);
}

/* Radio Player Button */
#radio-player-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-weight: 600;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    vertical-align: middle;
    line-height: 1;
}

#radio-player-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

#radio-player-btn:active {
    transform: scale(0.95);
}

#radio-icon {
    font-size: 1.2rem;
    line-height: 1;
}

/* Adjust footer margin to account for bottom bar */
.footer {
    margin-bottom: 0 !important;
}

/* Responsive adjustments for bottom bar */
@media (max-width: 991.98px) {
    .bottom-bar {
        height: auto;
        min-height: auto;
        padding: 1rem 0;
    }

    .bottom-bar .container-fluid {
        padding: 0 1rem;
    }

    .bottom-bar-item {
        font-size: 0.85rem;
        display: inline-block;
        margin: 0 0.5rem;
    }

    .bottom-bar .btn-info {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
        margin-top: 0.5rem;
    }

    .bottom-bar .btn-warning {
        font-size: 0.8rem;
        padding: 0.35rem 0.9rem;
        margin-top: 0.5rem;
    }

    .greetings-bar {
        margin: 0.5rem 0;
    }

    body {
        padding-bottom: 220px;
    }
}

@media (max-width: 767.98px) {
    .bottom-bar {
        padding: 0.75rem 0;
    }

    .bottom-bar .container-fluid {
        padding: 0 0.75rem;
    }

    .bottom-bar-item {
        font-size: 0.8rem;
        margin: 0 0.3rem;
    }

    .bottom-bar .btn-info {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .bottom-bar .btn-warning {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    body {
        padding-bottom: 240px;
    }
}

/* ==========================================
   Greetings Chat Page Styles
   ========================================== */

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #4a5fd9 0%, #5a3d8a 100%);
    border-radius: 15px;
    padding: 2rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chat-header h1 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chat-header p {
    color: #ffffff;
    opacity: 0.95;
}

.chat-header .btn-primary {
    background-color: #ffffff;
    color: #4a5fd9;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.chat-header .btn-primary:hover {
    background-color: #f0f0f0;
    color: #3a4dc9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Chat Container */
.chat-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Custom scrollbar for chat container */
.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 10px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Chat Message */
.chat-message {
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
}

.chat-message.new-message {
    animation: slideIn 0.5s ease-out, highlight 2s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes highlight {

    0%,
    100% {
        background-color: transparent;
    }

    10% {
        background-color: rgba(255, 193, 7, 0.2);
    }
}

/* Message Bubble */
.message-bubble {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message-bubble:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Message Author */
.message-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-gradient-start);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.message-author i {
    font-size: 1.2rem;
}

/* Message Text */
.message-text {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Message Time */
.message-time {
    color: #6c757d;
    font-size: 0.8rem;
    text-align: right;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state i {
    opacity: 0.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-header {
        padding: 1.5rem;
    }

    .chat-container {
        padding: 1rem;
        max-height: 500px;
    }

    .message-bubble {
        padding: 0.875rem 1rem;
    }

    .message-text {
        font-size: 0.95rem;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 60px; /* Above bottom bar */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9998; /* Below modals but above bottom bar */
    border-top: 3px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner a {
    color: white;
    font-weight: 500;
}

.cookie-banner a:hover {
    color: #ffc107;
}

.cookie-banner .btn-light {
    background-color: white;
    color: #667eea;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-banner .btn-light:hover {
    background-color: #ffc107;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Cookie Banner Animations */
@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDownToBottom {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .cookie-banner {
        bottom: 120px; /* Above taller mobile bottom bar */
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 180px; /* Above even taller mobile bottom bar on small screens */
        padding: 1rem 0;
    }

    .cookie-banner p {
        font-size: 0.875rem;
    }

    .cookie-banner .btn-light {
        width: 100%;
    }
}


