@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:wght@400;700&display=swap');

:root {
    --menu-bar-height: 75px;
    --neon-glow01: rgb(241, 254, 0);
    --neon-glow02: rgb(245, 10, 198);
    --bg-color: #1a1a1a;
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Anonymous Pro', monospace;
    background-color: var(--bg-color);
}

h1 {
    color: white;
    font-family: 'Anonymous Pro', monospace;
    font-size: 40px;
}

h2 {
    color: white;
    font-family: 'Anonymous Pro', monospace;
    font-size: 30px;
    text-align: center;
}

#header {
    width: 100%;
    height: var(--menu-bar-height);
    background-color: #333;
    color: white;
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1%;
    box-sizing: border-box;
    box-shadow: 0 0 10px var(--neon-glow01), 0 0 20px var(--neon-glow02);
    z-index: 10;
}

#app-title {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.system-status {
    width: calc(33.333% - 20px); /* Subtracting the total horizontal gap */
    margin: 0 10px; /* Half of gap on each side */
    padding: 10px;
    /* Rest of the styles */
}

#system-status {
    display: flex;
    justify-content: center; /* Center the child elements */
    align-items: flex-start; /* Align children to the top */
    padding: 10px 0;
    position: absolute; /* Changed from 'fixed' to 'absolute' */
    top: var(--menu-bar-height); /* Adjust this value to match the height of your header */
    left: 0;
    right: 0;
    margin-top: 20px; /* Add margin to the top */
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    position: absolute;
    top: var(--menu-bar-height);
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 100px;
    padding: 2%;
    box-sizing: border-box;
    align-items: center;
    justify-items: center;
}

#grid-container button {
    position: relative;
    width: 100%;
    height: 100%;
    color: white;
    font-size: calc(10px + 1vmin);
    background-color: #444;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.1s;
    outline: none;
    border: 2px solid transparent;
    border-radius: 5px;
    z-index: 2;
}

#grid-container button:before,
#grid-container button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    transform: translate(-50%, -50%);
    background-color: var(--bg-color);
    z-index: 1;
    transition: all 0.3s ease;
}

#grid-container button:before {
    box-shadow: 0 0 10px var(--neon-glow01), 0 0 20px var(--neon-glow02);
    opacity: 0.7;
}

#grid-container button:after {
    box-shadow: 0 0 40px var(--neon-glow01), 0 0 60px var(--neon-glow02);
    opacity: 0;
}

#grid-container button:hover:before {
    opacity: 0.5;
}

#grid-container button:hover:after {
    opacity: 0.5;
}

#grid-container button:active {
    transform: scale(0.98);
}

#properties-button {
    background-color: #333;
    color: white;
    font-size: 20px;
    margin-right: 20px;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-glow01), 0 0 20px var(--neon-glow02);
}

#properties-panel {
    background-color: #222;
    width: 75%;
    max-width: 400px;
    height: 100%;
    position: fixed;
    top: 35px;
    right: -75%;
    transition: right 0.3s;
    padding-top: 45px;
    overflow-y: auto;
    box-shadow: none;
    z-index: 5;
}

#properties-title {
    padding-bottom: 15px;
    border-color: #fff;
    border-style: solid;
    border-width: 2px;
    border-top: none;
    border-left: none;
    border-right: none;
}

#properties-footer {
    text-align: center;
    padding: 6px 8px 12px 8px;
    font-size: 15px;
    font-weight: bold;
    color: white;
}
  
#properties-footer .footer-link {
    color: var(--neon-glow02);
    text-decoration: none;
    font-weight: bold;
}
  
#properties-footer .footer-link:hover {
    color: white;
    text-shadow: 0 0 8px var(--neon-glow02), 0 0 12px white;
}
  
#properties-footer .footer-text {
    font-size: 15px;
    line-height: 1.4;
}

#properties-panel.show {
    right: 0;
    box-shadow: 0 0 10px var(--neon-glow01), 0 0 20px var(--neon-glow02);
}

#tabs-container {
    margin-top: -25px;
}

.tabs button.tab-link {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}

.tabs button.tab-link:hover {
    background-color: #ddd;
}

.tabs button.active {
    background-color: #ccc;
}

.tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    background: #333;
}

.tab-link {
    flex: 1;
    text-align: center;
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: background-color 0.3s;
    font-size: 17px;
    color: white;
}

.tab-link:hover, .tab-link.active {
    background-color: #555;
}

.tabs {
    margin-left: -1px;
}

.tab-link {
    margin-left: 1px;
}

#tabs-devider {
    border-style: solid;
    border-width: 2px;
    border-color: #fff;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.tab-content {
    color: #000;
    background-color: #222;
    display: none;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    font-size: 20px;
}

#connection-status {
    width: 20px;
    height: 20px;
    margin-right: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at 50%, rgba(255,0,0,1) 70%, rgba(240,248,255,0.8) 100%);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        inset 0 0 2px #fff,
        0 0 8px rgba(0, 0, 139, 0.6),
        0 0 15px rgba(64,224,208, 0.9);
    transition: all 0.3s ease-in-out;
}

#connection-status.green {
    background: radial-gradient(circle at 50%, rgb(35, 175, 35) 70%, rgba(240,248,255,0.8) 100%);
    box-shadow:
        inset 0 0 2px #fff,
        0 0 8px rgba(0, 100, 0, 0.6),
        0 0 15px rgba(64,224,208, 0.9);
}

#mic-button {
    background: none;
    width: 30px;
    height: 30px;
    padding-left: 50px;
    border: none;
    cursor: pointer;
    margin-left: 10px;
    color: white;
    font-size: 24px;
}

#mic-button i {
    color: white;
    transition: color 0.3s, text-shadow 0.3s;
    font-size: 24px;
}

#mic-button.mic-on i {
    color: #4CAF50;
    text-shadow: 0 0 10px #4CAF50, 0 0 20px #4CAF50;
}

#mic-button.mic-muted i {
    color: #f44336;
    text-shadow: 0 0 10px #f44336, 0 0 20px #f44336;
}

.checkbox-button {
    display: flex;
    align-items: center;
    margin: 10px 0;
    cursor: pointer;
    color: white;
}

.checkbox-button input {
    display: none;
}

.checkbox-button label {
    margin-left: 10px;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.checkbox-button .indicator {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 50%;
    background-color: red;
}

.checkbox-button input:checked + label + .indicator {
    background-color: green;
}

/* Additional CSS */
.display-window-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #444;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 10px 0;
    width: 200px;
}

.display-window-button:hover {
    background-color: #666;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-left: 10px;
}

.indicator.red {
    background-color: red;
}

.indicator.green {
    background-color: green;
}

.separator-line {
    border: 1px solid white;
    margin: 10px 0;
}

button {
    background-color: #444;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #666;
}

button:disabled {
    background-color: #333;
    cursor: not-allowed;
}

.small-rectangle {
    width: 50px;
    height: 50px;
    border: 2px solid grey;
    margin: 10px 0;
}

.background-settings {
    display: flex;
    flex-direction: column;
}

.background-settings button {
    margin: 5px 0;
}

#utility-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 120px 0;
}

#counter {
    display: flex;
    align-items: center;
}

.counter-button {
    background-color: #444;
    color: white;
    font-size: 24px;
    padding: 10px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
    margin: 0 5px;
}

.counter-button:hover {
    background-color: #666;
}

#counter-display {
    font-family: 'Anonymous Pro', monospace;
    font-size: 36px;
    color: #f00;
    background-color: #222;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #444;
    text-align: center;
    width: 100px;
}

.seven-segment {
    font-family: 'Courier New', Courier, monospace;
    color: #FF0000;
    background-color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 32px;
    text-align: center;
    letter-spacing: 5px;
}

@media (max-width: 768px) {
    :root {
        --menu-bar-height: 50px;
    }

    #header {
        padding: 0 10px;
    }

    #grid-container {
        grid-gap: 20px;
        padding: 10px;
    }

    #grid-container button {
        height: 60px;
    }

    #app-title h1 {
        font-size: 30px;
    }

    #properties-button {
        padding: 5px 15px;
        font-size: 16px;
    }

    #properties-panel {
        width: 100%;
        right: 0;
        padding: 20px;
        box-shadow: inset 0 0 10px var(--neon-glow01), inset 0 0 20px var(--neon-glow02);
        z-index: 5;
        display: none;
    }

    #properties-panel.show {
        display: block;
    }
}
