/* Base styles - extracted from inline index.html */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    height: 100vh;
    overflow: hidden;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4ecdc4 0%, #3ba89f 100%);
    border-radius: 5px;
    border: 2px solid rgba(26, 26, 46, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #5fd9d0 0%, #4ecdc4 100%);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #3ba89f 0%, #2d8a82 100%);
}

::-webkit-scrollbar-corner {
    background: rgba(255, 255, 255, 0.05);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #4ecdc4 rgba(255, 255, 255, 0.05);
}

.container {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow-y: auto;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-title {
    color: #ffd700;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(78, 205, 196, 0.3);
    border-top: 4px solid #4ecdc4;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #4ecdc4;
    font-size: 1.2em;
    font-family: 'Courier New', monospace;
}

h1 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.lifespan-container {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.lifespan {
    font-size: 1.5em;
    color: #ff6b6b;
    font-weight: bold;
}

.speed-control {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.speed-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.speed-btn {
    padding: 10px 20px;
    border: 2px solid #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
}

.speed-btn:hover {
    background: rgba(78, 205, 196, 0.4);
    transform: translateY(-2px);
}

.speed-btn.active {
    background: #4ecdc4;
    color: #1a1a2e;
}

.speed-controls-fixed.battle-locked .speed-btn:not(#pauseBtn) {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Main layout with sidebar */
.main-layout {
    display: flex;
    gap: 20px;
}

.main-content {
    flex: 1;
    overflow-y: visible;
    min-width: 0;
}
