/* ===== Stargate: Atlantis Waybar Style ===== */

* {
    /* Fonts - Vi bruger en lidt større og federe skrifttype */
    font-family: "JetBrains Mono Nerd Font", FontAwesome;
    font-size: 15px;
    font-weight: bold;
    /* Reset */
    border: none;
    border-radius: 0;
}

window#waybar {
    background: rgba(16, 21, 26, 0.8); /* Mørkeblå, semi-transparent glas-effekt */
    color: #cdd6f4; /* Generel lys tekstfarve */
    border-bottom: 2px solid rgba(0, 170, 255, 0.6); /* Subtil Atlantis-blå linje i bunden */
}

/* --- Generel Modul Styling --- */
/* Giver alle moduler en ensartet baggrund, margin og padding */
#workspaces,
#clock,
#pulseaudio,
#network,
#battery,
#tray {
    background-color: rgba(30, 30, 46, 0.5); /* Lidt lysere semi-transparent baggrund */
    padding: 2px 12px;
    margin: 5px 0px; /* Top/bottom margin for at skabe luft */
    border-radius: 10px;
    margin-right: 5px;
}

/* --- Specifik Modul Styling --- */

#workspaces {
    margin-left: 5px;
    padding-right: 0px;
    padding-left: 5px;
}

#workspaces button {
    color: #89b4fa; /* Blå farve for inaktive workspaces */
    padding: 0 5px;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

#workspaces button:hover {
    background-color: rgba(205, 214, 244, 0.1); /* Lys hover-effekt */
    color: #f5c2e7;
    border-radius: 8px;
}

/* Aktiv eller fokuseret workspace */
#workspaces button.focused,
#workspaces button.active {
    color: #1e1e2e; /* Mørk tekst for kontrast */
    background-color: #89b4fa; /* Klar blå for aktiv workspace */
    border-radius: 8px;
}

#clock {
    padding-left: 15px;
    padding-right: 15px;
}

/* --- Styling for specielle tilstande (gør baren funktionel) --- */

#network.disconnected {
    background-color: #f38ba8; /* Rødlig farve for disconnected */
    color: #1e1e2e;
}

#pulseaudio.muted {
    color: #f38ba8; /* Rød tekst når lyden er slået fra */
}

#battery.charging {
    color: #a6e3a1; /* Grøn for opladning */
}

#battery.warning {
    color: #fab387; /* Orange for advarsel */
}

#battery.critical {
    background-color: #f38ba8; /* Rødlig baggrund for kritisk */
    color: #1e1e2e;
    animation-name: blink;
    animation-duration: 0.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

/* Blinke-animation for kritisk batteri */
@keyframes blink {
    to {
        background-color: #fab387;
        color: #1e1e2e;
    }
}
