/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif; /* Fonta ģimene visiem elementiem */
}

body {
    display: flex;
    background-color: #f5f5dc; /* Fona krāsa - bēša */
    height: 100vh;
}

.sidebar {
    width: 60px;
    height: 100vh;
    background-color: #333; /* Tumši pelēks sānu panelis */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0; /* Sānu panelis kreisajā pusē */
}

.sidebar-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Atstarpe starp ikonām */
    flex-grow: 1;
    justify-content: center; /* Centrē ikonas vertikāli */
}

.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); /* Baltas ikonas */
    transition: filter 0.3s, transform 0.3s, filter 0.3s; /* Smooth transitions */
}

/* Active icon styling */
.sidebar-icons a.active img {
    filter: brightness(0.4); /* Tumšākas ikonas krāsa aktīvai lapai */
}

/* 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 */
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-banner {
    background: url('../images/banner-image.png') no-repeat center center; /* Attēla ceļš un izlīdzināšana */
    background-size: cover;
    width: 90%;
    height: 55vh;
    border-radius: 20px;
    border: 3px solid black; /* Melna robeža ap banneri */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
}

.main-banner p {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}

.main-banner button {
    background-color: black;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    transition: transform 0.3s, background-color 0.3s; /* Efekti hover laikā */
}

.main-banner button:hover {
    background-color: #333; /* Tumšāka krāsa hover laikā */
    transform: scale(1.05); /* Poga nedaudz palielinās hover laikā */
}

.info-cards {
    display: flex;
    justify-content: space-between;
    width: 90%;
    gap: 20px; /* Atstarpe starp informācijas kartēm */
    height: 35vh;
}

.info-card {
    background-color: #333; /* Tumši pelēks fons */
    color: white;
    width: 100%;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-card p:first-child {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.info-card p:last-child {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.info-card img {
    width: 35px;
    height: 35px;
}

.avatars {
    display: flex;
    justify-content: center;
    gap: 6px; /* Atstarpe starp avatāriem */
    margin-top: 15px;
}

.avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Apaļi avatāri */
}

/* 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;
}
