/* styles moved from ia2.0.html */
:root {
    --bg-main: #ffffff;
    --bg-sidebar: #0f3c44;
    --bg-chat: #f6f6f6;
    --text-main: #1a1a1a;
    --accent: #1aa6a6;
    --header-bg: #00041c;
    --bg-body-start: #00041c;
    --bg-body-end: #17808b;
}

[data-theme="dark"] {
    --bg-main: #0b1e24;
    --bg-sidebar: #07161b;
    --bg-chat: #0f2a31;
    --text-main: #ffffff;
    --accent: #2ad4d4;
    --header-bg: #051218;
    --bg-body-start: #0a1620;
    --bg-body-end: #1a3a42;
}

[data-theme="light"] {
    --bg-main: #ffffff;
    --bg-sidebar: #1f5f68;
    --bg-chat: #f4f9f9;
    --text-main: #1a1a1a;
    --accent: #1aa6a6;
    --header-bg: #00041c;
    --bg-body-start: #f5f5f5;
    --bg-body-end: #e8f1f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-body-start) 0%, var(--bg-body-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
}

.chat-container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: var(--bg-main);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 4, 28, 0.3);
    display: flex;
    overflow: hidden;
    transition: background 0.3s ease;
}

.sidebar {
    width: 330px;
    background: linear-gradient(180deg, var(--bg-sidebar) 0%, var(--accent) 100%);
    padding: 30px 20px;
    color: white;
    display: flex;
    flex-direction: column;

    /* Make the sidebar scrollable when content overflows */
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
    transition: background 0.3s ease;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a919e;
}

.logo-section h1 {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.logo-section p {
    font-size: 13px;
    color: #2a919e;
    letter-spacing: 1px;
}

.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.info-card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-card p, .info-card a {
    font-size: 13px;
    line-height: 1.6;
    color: white;
    text-decoration: none;
}

.info-card a:hover {
    color: #000000;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: #2a919e;
}

.services-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.service-category {
    display: flex;
    flex-direction: column;
}

.service-main {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    text-align: left;
    padding-left: 10px;
}

.service-main:hover {
    background: rgba(42, 212, 212, 0.9);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.service-main.open .toggle-icon {
    transform: rotate(180deg);
}

.service-submenu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding-left: 10px;
    margin-top: 4px;
    border-left: 3px solid var(--accent);
    padding-left: 12px;
}

.service-submenu.open {
    display: flex;
}

.service-item {
    background: rgba(42, 212, 212, 0.15);
    color: white;
    border: 1px solid rgba(42, 212, 212, 0.3);
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    text-align: left;
    width: 100%;
}

.service-item:hover {
    background: rgba(42, 212, 212, 0.3);
    border-color: rgba(42, 212, 212, 0.6);
    transform: translateX(2px);
}

.service-subcategory {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.service-subitem {
    background: rgba(42, 212, 212, 0.08);
    color: white;
    border: 1px solid rgba(42, 212, 212, 0.2);
    padding: 7px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 11px;
    text-align: left;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.service-subitem:hover {
    background: rgba(42, 212, 212, 0.15);
    border-color: rgba(42, 212, 212, 0.4);
}

.service-subitem .toggle-icon {
    width: 14px;
    height: 14px;
    margin-left: 4px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.service-tag {
    background: var(--accent);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    text-align: center;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-tag:hover {
    transform: scale(1.05);
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--header-bg);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.chat-header h2 {
    font-size: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    transition: background 0.3s ease;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: var(--bg-chat);
    transition: background 0.3s ease;
}

.message {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.message.bot .message-avatar {
    background: var(--accent);
    color: white;
    transition: background 0.3s ease;
}

.message.user .message-avatar {
    background: var(--header-bg);
    color: white;
    transition: background 0.3s ease;
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 15px;
    line-height: 1.5;
}

.message.bot .message-content {
    background: var(--bg-main);
    color: var(--text-main);
    border-bottom-left-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.message.user .message-content {
    background: var(--header-bg);
    color: white;
    border-bottom-right-radius: 5px;
    transition: background 0.3s ease;
}

.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.option-button {
    background: var(--bg-main);
    border: 2px solid var(--accent);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-button:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 145, 158, 0.3);
}

.chat-input-container {
    padding: 20px 30px;
    background: var(--bg-main);
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    transition: background 0.3s ease;
}

.chat-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
    background: var(--bg-main);
    color: var(--text-main);
}

.chat-input:focus {
    border-color: #2a919e;
}

.send-button {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-button:hover {
    background: #00041c;
    transform: scale(1.1);
}

.send-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}

.mobile-header {
    display: none;
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .chat-container {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar-overlay.open {
        display: block;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        background: #00041c;
        color: white;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
    }

    .mobile-logo {
        font-size: 20px;
        font-weight: bold;
    }

    .mobile-status {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 12px;
    }

    .mobile-status-dot {
        width: 8px;
        height: 8px;
        background: #2a919e;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

    .chat-header {
        display: none;
    }

    .chat-messages {
        padding: 15px;
        height: calc(100vh - 130px);
    }

    .message-content {
        max-width: 85%;
        font-size: 14px;
        padding: 12px 15px;
    }

    .message-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .options-container {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
    }

    .option-button {
        padding: 10px 12px;
        font-size: 13px;
    }

    .chat-input-container {
        padding: 15px;
        position: sticky;
        bottom: 0;
    }

    .chat-input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .send-button {
        width: 45px;
        height: 45px;
    }

    .info-section {
        gap: 15px;
    }

    .info-card {
        padding: 12px;
    }

    .info-card h3 {
        font-size: 13px;
    }

    .info-card p, .info-card a {
        font-size: 12px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .service-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .logo-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .logo-section h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .mobile-logo {
        font-size: 18px;
    }

    .message-content {
        max-width: 90%;
        font-size: 13px;
    }

    .options-container {
        grid-template-columns: 1fr;
    }

    .option-button {
        font-size: 12px;
    }
}

.map-container {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
}

/* WebKit scrollbar styling for the sidebar */
.sidebar::-webkit-scrollbar {
    width: 10px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.theme-selector {
    display: flex;
    gap: 8px;
    margin-left: 20px;
    align-items: center;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 40px;
}

.theme-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.12) rotate(5deg);
}

.theme-btn:hover svg {
    transform: rotate(-5deg);
}

.theme-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 16px rgba(42, 212, 212, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

.theme-btn.active svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

#themeSelector {
    margin-left: 15px;
    background: transparent;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

#themeSelector:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
}

#themeSelector:focus {
    outline: none;
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

#themeSelector option {
    background: var(--bg-main);
    color: var(--text-main);
}

.logo {
    width: 270px;
    height: 100px;

}
.message-content ul {
    list-style: none;    
    padding-left: 0;       
    margin: 8px 0;
}

.message-content li {
    margin-bottom: 6px;
}
