/* Battery & Performance Styles */

/* Battery Display */
.battery-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
}

.battery-icon {
    width: 60px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 2px 2px 0;
}

.battery-level {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 2px;
    transition: width 0.3s ease;
    min-width: 2px;
}

.battery-info {
    flex: 1;
}

#battery-percent {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

#battery-status-text {
    font-size: 12px;
    opacity: 0.7;
}

/* Performance Profile Buttons */
.profile-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.profile-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 11px;
}

.profile-btn.active {
    background: rgba(147, 51, 234, 0.2);
    border-color: #9333ea;
    color: #fff;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
}

.profile-icon {
    font-size: 20px;
}

.profile-name {
    font-weight: 500;
}

.profile-description {
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
    opacity: 0.8;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#performance-stats {
    line-height: 1.6;
}

#performance-stats span {
    color: #9333ea;
    font-weight: 600;
}

/* Responsive: Single column on small screens */
@media (max-width: 768px) {
    .profile-buttons {
        grid-template-columns: 1fr;
    }
    
    .battery-display {
        flex-direction: column;
        text-align: center;
    }
}

/* Dark theme compatibility */
body.dark-theme .battery-icon {
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .profile-btn {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}


/* Animation for battery level changes */
@keyframes batteryPulse {
    0%, 100% { color: #4ade80; }
    50% { color: #86efac; }
}

.battery-level.charging {
    animation: batteryPulse 1.5s ease-in-out infinite;
}

/* Low battery warning pulse */
.battery-level.low {
    animation: batteryPulse 2s ease-in-out infinite;
}

/* FPS Adaptive Notification */
.fps-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(147, 51, 234, 0.95);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.fps-notification.show {
    display: block;
}

/* Setting hints */
.setting-hint {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    line-height: 1.3;
}

/* Adaptive Tier Indicator */
.adaptive-tier-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(147, 51, 234, 0.15);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 6px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

#tier-icon {
    font-size: 18px;
}

#tier-name {
    flex: 1;
    text-transform: capitalize;
}
