* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif; /* Fonta stils visiem elementiem */
}

body {
    display: flex;
    background-color: #f5f5dc; /* Bēša fona krāsa */
    height: 100vh;
}

.sidebar {
    width: 60px;
    height: 100vh;
    background-color: #333; /* Tumši pelēka sānu joslas krāsa */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    justify-content: center; /* Centrē ikonas vertikāli */
}

.sidebar-icons .top-icon {
    align-self: flex-start;
    margin-bottom: auto; /* Piespiež augšējo ikonu uz augšu */
}

.sidebar-icons .bottom-icon {
    align-self: flex-end;
    margin-top: auto; /* Piespiež apakšējo ikonu uz leju */
}

.sidebar-icons a {
    display: block;
    margin: 15px 0;
}

.sidebar-icons img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* Balta ikonu krāsa */
    transition: filter 0.3s; /* Pārejas efekts uz hover */
}

.sidebar-icons a.active img {
    filter: brightness(1) sepia(1) hue-rotate(35deg) saturate(3) brightness(0.9); /* Aktīvās ikonas krāsa */
}

.sidebar-icons a:hover img {
    filter: brightness(1.5); /* Gaišāks efekts hover laikā */
}

.chat-container {
    margin-left: 80px;
    padding: 20px;
    width: calc(100% - 80px); /* Pielāgo platumu, lai izvairītos no sānu joslas */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

.chat-message {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Apaļa forma attēliem */
    margin-right: 10px;
}

.message-bubble {
    background-color: #87CEFA; /* Gaiši zils burbulis AI ziņām */
    color: black;
    padding: 15px;
    border-radius: 15px;
    max-width: 60%;
    font-size: 16px;
    position: relative;
}

.message-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background-color: #87CEFA;
    clip-path: polygon(0 0, 100% 0, 0 100%); /* Mazais trijstūris AI burbulim */
}

/* Lietotāja ziņojuma stils */
.user {
    justify-content: flex-end; /* Pārvieto lietotāja ziņojumus pa labi */
}

.user .message-bubble {
    background-color: #d3d3d3; /* Pelēks burbulis lietotājam */
    color: black;
    text-align: right;
}

.user .message-bubble::after {
    content: none; /* Noņem trijstūri lietotāja burbulim */
}

.user-avatar {
    order: 1;
    margin-left: 10px;
}

.input-container {
    display: flex;
    align-items: center;
    background-color: black;
    padding: 10px;
    border-radius: 5px;
}

input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    color: white;
    background-color: black;
    outline: none;
}

input::placeholder {
    color: #d3d3d3; /* Pelēks viettura teksts */
}

button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
}
