* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif; /* Pielieto fontu Jost visiem elementiem */
}

body {
    display: flex;
    background-color: #f5f5dc; /* Fona krāsa - bēšs */
}

.sidebar {
    width: 60px;
    height: 100vh;
    background-color: #333; /* Tumši pelēks fons sānu panelim */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0; /* Fiksē sānu paneli ekrāna kreisajā pusē */
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Atstarpes starp ikonām */
    flex-grow: 1; /* Kontrolē vietu, ko ikonas aizņem sānu panelī */
    justify-content: center; /* Centrē ikonas paneļa vidū */
}

.sidebar-icons a {
    display: block;
    margin: 15px 0; /* Vertikāla atstarpe starp ikonām */
}

/* Icon default styling */
.sidebar-icons img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* Ikonas baltas */
    transition: filter 0.3s, transform 0.3s, filter 0.3s; /* Vienmērīga pāreja */
}

/* Active icon styling */
.sidebar-icons a.active img {
    filter: brightness(0.4); /* Darker brightness for active icon */
}

/* Hover effect: Subtle glow effect on the icon itself */
.sidebar-icons a:hover img {
    transform: scale(1.05); /* Slightly increase the size */
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5)) brightness(1.3); /* Subtle glow effect */
}

.content {
    margin-left: 80px; /* Kompensē sānu paneli */
    padding: 20px;
    width: calc(100% - 80px); /* Aizņem pilnu ekrānu, atņemot sānu paneli */
    display: flex;
    flex-direction: column;
    gap: 5px; /* Minimāla atstarpe starp draugu vienībām */
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Izvieto virsrakstu un ikonu malās */
    padding: 10px; /* Polsterējums virsraksta sadaļai */
}

h2 {
    font-size: 24px; /* Virsraksta fonta lielums */
    color: #333; /* Tumši pelēka virsraksta krāsa */
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Apaļš avatara formas profils */
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 15px; /* Polsterējums katrai drauga vienībai */
    background-color: white;
    border-radius: 10px; /* Apaļas malas drauga vienībai */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Neliela ēna drauga vienībai */
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Apaļa forma avatariem */
    margin-right: 10px; /* Atstarpe starp avatari un drauga vārdu */
}

.friend-name {
    flex: 1; /* Paplašina drauga vārda lauku līdz pieejamajam platumam */
    font-size: 18px;
    color: #333; /* Tumši pelēks teksts drauga vārdam */
}

.message-icon {
    width: 25px;
    height: 25px;
    cursor: pointer; /* Peles rādītājs kļūst par pointeri virs ikonas */
}

/* Tooltip styling */
.sidebar-icons a {
    position: relative;
}

.sidebar-icons a:hover::after {
    content: attr(data-tooltip); /* Display tooltip text */
    position: absolute;
    left: 57px; /* Position tooltip to the right of the icon */
    top: 50%;
    transform: translateY(-50%);
    background-color: #444; /* Dark background */
    color: #fff; /* White text */
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Soft shadow */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

/* Arrow styling */
.sidebar-icons a:hover::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 48px; /* Center the arrow relative to the icon */
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #444; /* Arrow pointing left */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

/* Display tooltip and arrow on hover */
.sidebar-icons a:hover::after,
.sidebar-icons a:hover::before {
    opacity: 1;
    visibility: visible;
}
