/* Info Button */
.info-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 30, 46, 0.8);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.info-button:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
}

/* Info Overlay */
.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.info-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.info-content {
    background: var(--surface-color);
    color: var(--on-surface-color);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.info-content h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 28px;
    text-align: center;
}

.info-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.info-section p, .info-section ul {
    margin: 10px 0;
    line-height: 1.6;
}

.dev-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.dev-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.dev-link .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.dev-link:hover .arrow {
    transform: translateX(3px);
}

.info-section ul {
    padding-left: 20px;
}

/* Toggle Switch */
.setting {
    margin: 15px 0;
}

.setting-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.setting-description {
    font-size: 0.85em;
    color: #aaa;
    margin-left: 62px; /* Better alignment with the toggle switch */
    margin-top: -4px; /* Slight adjustment to bring it closer to the toggle */
    line-height: 1.4;
    display: block;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

input:checked + .slider {
    background-color: var(--primary-color);
}

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

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.info-section li {
    margin-bottom: 8px;
}

.close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: var(--danger-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Reset Balance Button */
.reset-balance-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 0, 0, 0.8);
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 10px;
}

.reset-balance-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.reset-balance-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
