body {
    background: url('background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
}

#content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background-color: #424242;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
}

#adminPanel {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
    align-items: center;
}

input,
select {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 200px;
    box-sizing: border-box;
}

button,
.smallButton,
.button-link {
    background-color: #ff0000;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px #999;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

button {
    padding: 12px 25px;
    font-size: 15px;
}

.smallButton {
    padding: 6px 12px;
    font-size: 12px;
    margin: 2px;
}

button:hover,
.smallButton:hover,
.button-link:hover {
    background-color: #cc0000;
}

/* Switch toggle styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #f44336;
    transition: .3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4CAF50;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

table {
    margin-top: 10px;
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    border-bottom: 1px solid #555;
    text-align: center;
    vertical-align: middle;
}

th {
    background-color: #333;
    color: #fff;
}

/* Section boxes (used in main.html & superAdmin) */
.section-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.section-box h3 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    text-align: left;
}

.input-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.input-group input[type="text"] {
    flex: 1;
    width: auto;
}

#result {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 5px;
    font-weight: bold;
}

/* Error Overlay styles */
#db-error-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.error-box {
    background: #2b2b2b;
    border: 2px solid #ff0000;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
}

.error-box h2 {
    color: #ff5555;
    margin-top: 0;
}

.reason-text {
    color: #ffcccc;
    font-family: monospace;
    background: #1e1e1e;
    padding: 10px;
    border-radius: 4px;
}
