/* General Styling */
* {
    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ēks fons sānu joslai */
    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; /* Kontrolē ikonu izvietojumu */
    justify-content: center; /* Centrē ikonas */
}

.sidebar-icons .top-icon {
    align-self: flex-start;
    margin-bottom: auto; /* Virza ikonas uz augšu */
}

.sidebar-icons .bottom-icon {
    align-self: flex-end;
    margin-top: auto; /* Virza ikonas uz apakšu */
}

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

.sidebar-icons img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1); /* Baltas ikonas */
    transition: filter 0.3s, transform 0.3s; /* Smooth transitions */
}

.sidebar-icons a.active img {
    filter: brightness(0.4); /* Tumšāks efekts aktīvai ikonai */
}

.sidebar-icons a:hover img {
    transform: scale(1.05); /* Slight zoom on hover */
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5)) brightness(1.3); /* Subtle glow effect */
}

.content {
    margin-left: 80px;
    padding: 20px;
    width: calc(100% - 80px); /* Platums ar atstarpi no sānu joslas */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-section {
    padding: 20px;
    background-color: #333; /* Tumšs fons iestatījumu sekcijām */
    color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

p {
    font-size: 14px;
    color: #bbb;
}

form label,
label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #bbb;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #555; /* Tumšs ievades lauku fons */
    color: white;
}

.button-container {
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button[type="submit"] {
    background-color: #4CAF50; /* Zaļā poga */
    color: white;
}

button[type="button"] {
    background-color: #888; /* Pelēkā poga */
    color: white;
}

.delete-btn {
    background-color: #8B0000; /* Sarkana poga dzēšanai */
    color: white;
    width: 100%;
    margin-top: 20px;
    cursor: pointer;
}

.toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle input[type="checkbox"] {
    display: none; /* Paslēpj checkbox */
}

.toggle label {
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #555;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

.toggle label:before {
    content: "";
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
    transition: 0.3s; /* Pāreja pārslēgšanas animācijai */
}

.toggle input[type="checkbox"]:checked + label {
    background-color: #4CAF50; /* Zaļa pārslēgšanas poga, ja atzīmēta */
}

.toggle input[type="checkbox"]:checked + label:before {
    left: 21px; /* Bumbas pozīcija, ja pārslēgta */
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.slider {
    width: 100%;
}

/* Modāla stili */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    color: white;
    text-align: center;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.confirm-delete {
    background-color: #8B0000; /* Sarkana dzēšanas apstiprināšanas poga */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.cancel-delete {
    background-color: #888; /* Pelēka dzēšanas atcelšanas poga */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* 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;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

.sidebar-icons a:hover::after,
.sidebar-icons a:hover::before {
    opacity: 1;
    visibility: visible;
}
