body {
    display: none; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Rubik', sans-serif;
    height: 100vh;
    transition: color 0.3s;
    background-color: transparent;

}


body.dark {
    background: transparent; 
    color: #dcdcdc; 
}

body.light {
    background: transparent; 
    color: #333; 
}


.panel {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 30px;
    width: 720px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, box-shadow 0.3s;
    overflow: hidden;
}


body.dark .panel {
    background: #292929;
    color: #fff;
    border-radius: 12px;
}
body.light .panel {
    background: #ffffff;
    color: #000;
    border-radius: 12px;
}

.panel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* .logo {
    height: 70px;
    margin-right: 18px;
} */
.logo-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

/* Rounded animated logo */
.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    animation: pulseSpin 0.8s ease-out;
    margin-bottom: 8px;
}

.theme-toggle {
    margin-left: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd; /* Lighter gray switch color */
    transition: .4s;
    border-radius: 50px;
}

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

input:checked + .slider {
    background-color: #34c759; /* Green color for checked switch */
}

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

h2 {
    color: #34c759; /* Green color for headers */
    font-size: 26px;
    margin-bottom: 4px;
}

.desc {
    font-size: 14px;
    color: #aaa; /* Light gray text */
    margin-bottom: 20px;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.button-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.info-box {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-size: 13px;
    text-transform: uppercase;
}

.info-box span {
    display: block;
    font-size: 22px;
    margin-top: 5px;
    color: #fff;
}

h3 {
    color: #34c759; /* Green color for sub-headers */
    font-size: 18px;
    margin: 20px 0 10px;
}

button {
    flex: 1;
    background: #2a2a2a; /* Dark button background */
    color: #00ffb2;
    border: 1px solid #00ffb250;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: #00ffb2;
    color: #000;
    transform: translateY(-2px);
    border-color: #00ffb2;
    box-shadow: 0 0 8px rgba(0, 255, 178, 0.3);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 255, 178, 0.5);
}

button.danger {
    background: #c10c0c; /* Red button for danger */
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border: 1px solid #b84a4a;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(255, 50, 50, 0.1);
}

button.danger:hover {
    background: #ff5959;
    transform: translateY(-2px);
    border-color: #ff7070;
    box-shadow: 0 0 8px rgba(255, 69, 69, 0.3);
}

button.danger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 69, 69, 0.4);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #222;
    padding-top: 10px;
    margin-top: 10px;
}

.current-fps {
    font-size: 13px;
    text-transform: uppercase;
    background: #0f1a24;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #222;
}

.current-fps span {
    display: block;
    font-size: 22px;
    margin-top: 4px;
    color: #34c759; /* Green for current FPS */
}

/* DARK THEME ENHANCEMENTS */

body.dark .info-box {
    background: #2c2c2c; /* Darker background for info box */
    border: 1px solid #444;
    color: #dcdcdc; /* Light gray text for dark mode */
}

body.dark .info-box span {
    color: #00ffb2; /* Green for info box text */
}

body.dark .current-fps {
    background: #121212;
    border: 1px solid #222;
    color: #34c759; /* Green for current FPS */
}


/* LIGHT THEME OVERRIDES */

body.light .panel {
    background: #ffffff;
}

body.light .desc {
    color: #333; /* Dark text for description */
}

body.light .info-box {
    background: #f1f1f1;
    color: #000;
}

body.light .info-box span {
    color: #000;
}

body.light .current-fps {
    background: #f1f1f1;
    color: #000;
}

body.light button {
    background: #c9e7d9; /* Light green button */
    color: #0f5132; /* Dark green text */
    transition: background 0.3s, color 0.3s;
    border: none;
}

body.light button:hover {
    background: #0f5132;
    color: #fff;
    transform: translateY(-2px);
}

body.light button.danger {
    background: #e36a6a; /* Lighter red for danger button */
}

body.light button.danger:hover {
    background: #d32f2f;
    color: #fff;
}
