/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1b1b1b;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="10" cy="20" r="1" fill="%23fff" opacity="0.6"/><circle cx="25" cy="35" r="0.8" fill="%23fff"/><circle cx="45" cy="15" r="1.2" fill="%23fff" opacity="0.6"/><circle cx="65" cy="50" r="0.9" fill="%23fff"/><circle cx="35" cy="70" r="1" fill="%23fff" opacity="0.7"/><circle cx="80" cy="25" r="0.7" fill="%23fff"/><circle cx="15" cy="85" r="1.1" fill="%23fff" opacity="0.5"/><circle cx="90" cy="75" r="0.8" fill="%23fff"/><circle cx="55" cy="45" r="1" fill="%23fff" opacity="0.9"/><circle cx="70" cy="80" r="0.6" fill="%23fff"/></svg>');
    background-repeat: repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to the top */
    min-height: 100vh;
    padding: 40px 20px;
    margin: 0;
    animation: twinkle 4s infinite;
}

/* @keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
} */

.container {
    background-color: #ededed;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(185, 185, 185, 0.6), 
                0 0 60px rgba(87, 87, 87, 0.4),
                0 20px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
}

h1 {
    color: #303030;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ededed;
    padding-bottom: 15px;
}

/* Status Indicator Styling */
.status-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #808080;
    border-radius: 10px;
    background-color: #ecf0f1;
}

.status-label {
    font-size: 1.2em;
    color: #34495e;
    font-weight: 600;
}

#door-status {
    display: flex;
    align-items: center;
    font-size: 1.4em;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 10px;
    color: white;
    transition: background-color 0.3s ease;
}

#status-icon {
    margin-right: 10px;
}

/* Status Themes */
.locked {
    background-color: #3c6de7; /* Red */
}

.open {
    background-color: #2ecc71; /* Green */
}

.unknown {
    background-color: #adadad; /* Orange */
}

/* Button Styling */
#toggle-button {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.2em;
    color: rgb(217, 217, 217);
    background-color: #0f0f0f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s, color 0.3s ease;
    font-weight: 600;
}

#toggle-button:hover {
    background-color: #4b4b4b;
}

#toggle-button:active {
    transform: scale(0.95);
    background-color: #ededed;
    color: #323232;
}

/* Log Styling */
.log-section {
    margin-top: 10px;
    padding-top: 20px;
}

.log-section h2 {
    color: #303030;
    font-size: 1.3em;
    margin-bottom: 15px;
}

#log-entries {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #808080;
    border-radius: 6px;
    background-color: #f9f9f9;
}

#log-entries li {
    padding: 10px 15px;
    border-bottom: 1px solid #e1e1e1;
    color: #7f8c8d;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
}

#log-entries li:last-child {
    border-bottom: none;
}

.log-entry-user {
    font-weight: bold;
    color: #2c3e50;
}