/* ===================================================================
   EXULO BROWSERGAME - MAIN STYLESHEET
   Modul 4: Schlichte, mathematische Styles
   Modul 7: Dashboard Grid System
   Hangar Page Styles
   =================================================================== */

/* CSS Variables */
:root {
    --panel-bg: #2a2a2a;
    --panel-bg-dark: #1a1a1a;
    --border-color: #444;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #666666;
    --input-bg: #1a1a1a;
    --bg-primary: #1a1a1a;
    --success-color: #00aa00;
    --success-color-dark: #008800;
    --warning-color: #ffcc00;
    --warning-bg: #3a3a2a;
    --error-color: #ff4444;
    --error-bg: #4a2a2a;
    --accent-color: #00d4ff;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* VICTORY BANNER - Siegbedingung wird gehalten                                 */
/* ═══════════════════════════════════════════════════════════════════════════ */
.victory-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 10px 20px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: victory-pulse 2s infinite;
}

@keyframes victory-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 215, 0, 0.8);
    }
}

.victory-banner .victory-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.victory-banner .victory-icon {
    font-size: 24px;
    animation: trophy-bounce 1s infinite;
}

@keyframes trophy-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.victory-banner .victory-text {
    font-size: 14px;
    font-weight: bold;
}

.victory-banner .victory-text strong {
    color: #1a1a2e;
    text-decoration: underline;
}

.victory-banner .victory-timer {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 12px;
}

.victory-banner .victory-progress {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 16px;
    min-width: 60px;
}

.victory-banner .victory-conditions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 8px;
    font-size: 11px;
}

.victory-banner .victory-condition {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.victory-banner .victory-condition.met {
    background: rgba(76, 175, 80, 0.3);
    color: #1b5e20;
}

.victory-banner .victory-condition.not-met {
    background: rgba(244, 67, 54, 0.2);
    color: #b71c1c;
}

/* Confirmed Victory State - Green */
.victory-banner.confirmed {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    animation: none;
}

.victory-banner.confirmed .victory-text strong {
    color: #fff;
}

.victory-banner.confirmed .victory-timer {
    background: rgba(255, 255, 255, 0.2);
}

/* Round Ended - Special Gold */
.victory-banner.round-ended {
    background: linear-gradient(135deg, #ffd700, #b8860b);
    animation: winner-glow 3s infinite;
}

@keyframes winner-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 4px 40px rgba(255, 215, 0, 1);
    }
}

/* Body adjustment when victory banner is shown */
body.has-victory-banner .game-header-v4,
body.has-victory-banner .game-header-v2-minimal {
    top: 80px !important;
}

body.has-victory-banner .game-wrapper,
body.has-victory-banner .main-content {
    margin-top: 80px;
}

/* Combined with frozen banner */
body.has-frozen-banner.has-victory-banner .victory-banner {
    top: 36px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent page shift when scrollbar appears/disappears */
html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    font-family: 'Courier New', monospace;
    background: #1a1a1a url('../images/Background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    line-height: 1.4;
}

/* Fallback for PNG background */
body {
    background: #1a1a1a url('../images/Background.png') no-repeat center center fixed,
                #1a1a1a url('../images/Background.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Game Container */
.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Resource Bar - Fixed at top */
.resource-bar {
    background: #252525;
    border-bottom: 2px solid #444;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 50px;
}

.resource-group {
    display: flex;
    gap: 24px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.resource-icon {
    font-size: 16px;
}

.resource-label {
    color: #999;
    font-weight: normal;
}

.resource-value {
    font-weight: bold;
    color: #4CAF50;
    min-width: 120px;  /* Increased from 80px to prevent jumping with large numbers */
    display: inline-block;  /* Ensure fixed width is respected */
    text-align: right;
}

.player-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.player-item {
    display: flex;
    gap: 4px;
    font-size: 14px;
}

/* Game Header V4 - Minimal Clean Style */
.game-header-v4 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 15px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%) !important;
    border-bottom: 1px solid #444 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3) !important;
    margin-bottom: 0px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
}

.game-header-v4 .header-left {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    background: #1e1e1e !important;
    padding: 0 15px !important;
    margin: 0 !important;
    height: 100% !important;
    width: 180px !important;
    border-right: 2px solid #333 !important;
    box-sizing: border-box !important;
}

.game-header-v4 .logo {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #4CAF50 !important;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.6) !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.game-header-v4 .username {
    color: #888 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
    line-height: 1 !important;
}

.game-header-v4 .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex: 1 !important;
    justify-content: center !important;
    margin-left: 50px !important;
    margin-right: 20px !important;
}

.game-header-v4 .resources-minimal {
    display: flex !important;
    gap: 18px !important;
    background: rgba(0,0,0,0.2) !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
}

.game-header-v4 .resource-minimal {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.resource-minimal .resource-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

.game-header-v4 .resource-minimal .resource-value {
    font-weight: 700 !important;
    color: #4CAF50 !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    text-shadow: 0 0 3px rgba(76, 175, 80, 0.5) !important;
    min-width: auto !important;
    text-align: left !important;
}

/* Time Section */
.game-header-v4 .time-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: rgba(76, 175, 80, 0.1) !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(76, 175, 80, 0.4) !important;
    font-family: 'Courier New', monospace !important;
    min-width: 90px !important;
}

.game-header-v4 .time-row {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}

.game-header-v4 .time-label {
    opacity: 0.9 !important;
    font-weight: 600 !important;
    color: #4CAF50 !important;
}

.game-header-v4 .time-value {
    font-weight: bold !important;
    color: #4CAF50 !important;
    text-shadow: 0 0 4px rgba(76, 175, 80, 0.7) !important;
}

/* Stats Minimal */
.game-header-v4 .stats-minimal {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 10px !important;
    background: rgba(0,0,0,0.2) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
    white-space: nowrap !important;
}

.game-header-v4 .stat-minimal {
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    white-space: nowrap !important;
}

.game-header-v4 .stat-label {
    opacity: 0.7 !important;
    font-weight: 400 !important;
    font-size: 9px !important;
}

.game-header-v4 .stat-value {
    font-weight: bold !important;
    color: #e0e0e0 !important;
    font-size: 10px !important;
}

/* Logout Minimal */
.game-header-v4 .logout-minimal {
    padding: 8px 12px !important;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2) 0%, rgba(244, 67, 54, 0.3) 100%) !important;
    color: #ff5722 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(244, 67, 54, 0.4) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2) !important;
}

.game-header-v4 .logout-minimal:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.4) 0%, rgba(244, 67, 54, 0.5) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3) !important;
}

.player-label {
    color: #999;
}

.player-value {
    font-weight: bold;
    color: #2196F3;
}

.logout-btn a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 4px 12px;
    border: 1px solid #666;
    border-radius: 2px;
    font-size: 12px;
    transition: all 0.2s;
}

.logout-btn a:hover {
    background: #333;
    border-color: #888;
}

/* Main Layout - Offset for fixed resource bar and sidebar */
.main-layout {
    display: flex;
    flex: 1;
    margin-top: 60px; /* Space for fixed header */
    margin-left: 180px; /* Width of sidebar */
    background: transparent; /* Allow background image to show */
}

/* Sidebar Navigation - Fixed */
/* NOTE: Main styling moved to line 3435 (transparent blue theme) */
/* Keeping minimal structure here for fallback */

.nav-header-old {
    /* Deprecated - using new transparent theme below */
    padding: 16px;
    border-bottom: 1px solid #333;
    text-align: center;
    background: #252525;
}

/* OLD HEADER STYLES - Deprecated */
/* .nav-header h1 and .player-name moved to transparent blue theme below */

.newbie-protection-old {
    /* Deprecated - moved to line 3456 with new blue theme */
    font-size: 12px;
    color: #FFC107;
    margin-top: 4px;
}

/* OLD NAVIGATION STYLES - Deprecated, moved to line 3533+ */
/* .nav-menu, .nav-item, .nav-link, .nav-icon, .nav-text */
/* Now using transparent blue theme styles below */

/* Content Area */
.content-area {
    flex: 1;
    padding: 0;
    /* background entfernt - wird jetzt zentral in header.php gesteuert */
}



.page-content {
    padding: 24px;
    min-height: calc(100vh - 180px);
}

/* Login Layout */
.login-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 48px;
    color: #4CAF50;
    margin-bottom: 8px;
}

.login-header p {
    color: #999;
    font-size: 16px;
}

.login-content {
    background: #252525;
    padding: 32px;
    border: 2px solid #444;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
}

/* Forms */
.form-group, .auth-form .form-group {
    margin-bottom: 16px;
}

.form-label, .auth-form label {
    display: block;
    margin-bottom: 4px;
    color: #e0e0e0;
    font-size: 14px;
}

.form-input, .auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    background: #1a1a1a;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
}

.form-input:focus, .auth-form input:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-button, .btn, .auth-form button {
    background: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    border-radius: 2px;
    transition: background 0.2s;
}

.form-button:hover, .btn:hover, .auth-form button:hover {
    background: #45a049;
}

.btn-primary {
    background: #2196F3;
}

.btn-primary:hover {
    background: #1976D2;
}

.btn-demo {
    background: #FF9800;
}

.btn-demo:hover {
    background: #F57C00;
}

.btn-full {
    width: 100%;
}

/* Tables */
.data-table {
    width: 100%;
    background: #252525;
    border: 1px solid #444;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-size: 14px;
}

.data-table th {
    background: #2a2a2a;
    color: #4CAF50;
    font-weight: bold;
}

.data-table td {
    color: #e0e0e0;
}

/* Messages & Alerts */
.message, .alert, .info {
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #444;
    border-radius: 2px;
}

.message.success, .alert-success {
    background: #1b3a1b;
    border-color: #4CAF50;
    color: #4CAF50;
}

.message.error, .alert-error {
    background: #3a1b1b;
    border-color: #f44336;
    color: #f44336;
}

.message.info, .alert-info, .info {
    background: #1b2a3a;
    border-color: #2196F3;
    color: #2196F3;
}

/* Auth Specific */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.auth-form-wrapper {
    background: #252525;
    padding: 32px;
    border: 2px solid #444;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
}

.auth-form-wrapper h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    text-align: center;
}

.auth-links {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: #2196F3;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.demo-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #444;
}

.demo-section h3 {
    color: #FF9800;
    margin-bottom: 12px;
    font-size: 16px;
}

.demo-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.demo-buttons .btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    padding: 8px;
}

/* Footer */
.footer-info {
    background: #1e1e1e;
    border-top: 1px solid #333;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: #666;
}


/* Dashboard System - Modul 7 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-widget {
    background: #252525;
    border: 2px solid #444;
    border-radius: 4px;
    padding: 16px;
    transition: border-color 0.3s ease;
}

.dashboard-widget:hover {
    border-color: #666;
}

.dashboard-widget h3 {
    color: #4CAF50;
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-widget-content {
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-resources {
    background: #252525;
    border: 2px solid #444;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
}

.dashboard-resources h3 {
    color: #4CAF50;
    margin-bottom: 12px;
    font-size: 16px;
}

.resource-production-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.resource-production-item {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #333;
}

.resource-production-item .resource-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 4px;
}

.resource-production-item .resource-amount {
    color: #4CAF50;
    font-size: 18px;
    margin-bottom: 2px;
}

.resource-production-item .resource-production {
    color: #999;
    font-size: 12px;
}

.dashboard-widget .status-active {
    color: #4CAF50;
}

.dashboard-widget .status-building {
    color: #FF9800;
}

.dashboard-widget .status-researching {
    color: #2196F3;
}

.dashboard-widget .status-inactive {
    color: #666;
}

.dashboard-widget .time-remaining {
    color: #FF9800;
    font-weight: bold;
}

.dashboard-widget table {
    width: 100%;
    font-size: 13px;
}

.dashboard-widget table td {
    padding: 4px 8px;
    border-bottom: 1px solid #333;
}

.dashboard-widget table td:first-child {
    color: #ccc;
}

/* Player Info Widget */
.player-info-widget {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #4CAF50;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.player-info-widget h2 {
    color: #4CAF50;
    margin-bottom: 8px;
    font-size: 24px;
}

.player-info-details {
    color: #ccc;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.player-info-details span {
    background: #1a1a1a;
    padding: 4px 8px;
    border-radius: 2px;
    border: 1px solid #333;
}

/* Live Update Indicators */
.dashboard-widget .update-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.dashboard-widget.updating {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Settings System - Modul 8 */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
}

.settings-section {
    background: #252525;
    border: 2px solid #444;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
    transition: border-color 0.3s ease;
}

.settings-section:hover {
    border-color: #666;
}

.settings-section h3 {
    color: #4CAF50;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
    font-size: 18px;
}

.settings-form {
    margin-top: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.error input {
    border-color: #f44336;
    background: #2a1a1a;
}

.form-group.error label {
    color: #f44336;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #ccc;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #444;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #222;
}

.form-group input:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

.checkbox-group {
    margin: 16px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    margin: 12px 0;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.checkbox-group label:hover {
    background: #2a2a2a;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.info-text {
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #1a1a1a;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
}

.help-text {
    color: #666;
    font-size: 12px;
    margin-top: 6px;
    font-style: italic;
}

.warning-text {
    color: #f44336;
    font-weight: bold;
    margin-bottom: 16px;
    padding: 12px;
    background: #2a1a1a;
    border-left: 4px solid #f44336;
    border-radius: 4px;
}

.danger-section {
    border-color: #f44336;
    background: #2a1a1a;
}

.danger-section h3 {
    color: #f44336;
}

.btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.btn-primary:hover {
    background: #45a049;
    border-color: #45a049;
    transform: translateY(-1px);
}

.btn-warning {
    background: #FF9800;
    color: #fff;
    border-color: #FF9800;
}

.btn-warning:hover {
    background: #f57c00;
    border-color: #f57c00;
    transform: translateY(-1px);
}

.btn-danger {
    background: #f44336;
    color: #fff;
    border-color: #f44336;
}

.btn-danger:hover {
    background: #d32f2f;
    border-color: #d32f2f;
    transform: translateY(-1px);
}

.btn:disabled {
    background: #555;
    color: #888;
    border-color: #555;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    background: #555;
    border-color: #555;
    transform: none;
}

/* Data Table in Settings */
.settings-section .data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
}

.settings-section .data-table th,
.settings-section .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.settings-section .data-table th {
    background: #333;
    font-weight: bold;
    color: #4CAF50;
    text-transform: uppercase;
    font-size: 12px;
}

.settings-section .data-table tr:hover {
    background: #2a2a2a;
}

.settings-section .data-table .success {
    color: #4CAF50;
    font-weight: bold;
}

.settings-section .data-table .error {
    color: #f44336;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .resource-bar {
        flex-direction: column;
        gap: 8px;
        height: auto;
        padding: 12px;
    }
    
    .resource-group {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .sidebar-nav {
        width: 180px;
        top: 65px; /* Adjusted for new header height */
        bottom: 0;
    }
    
    .main-layout {
        margin-left: 180px;
        margin-top: 0px; /* No gap between header and content */
    }
    
    .nav-text {
        font-size: 12px;
    }
}
    
    .page-content {
        padding: 16px;
    }
    
    .demo-buttons {
        flex-direction: column;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-production-grid {
        grid-template-columns: 1fr;
    }
    
    .player-info-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .settings-container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .settings-section {
        padding: 16px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Resources System - Modul 9 */
.resources-container {
    max-width: 1200px;
    margin: 0 auto;
}

.resources-section {
    background: #252525;
    border: 2px solid #444;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
    transition: border-color 0.3s ease;
}

.resources-section:hover {
    border-color: #666;
}

.resources-section h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resources-section h4 {
    color: #2196F3;
    margin-bottom: 16px;
    font-size: 16px;
}

.resources-section h5 {
    color: #FF9800;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Building Queue */
.building-queue-section {
    border-color: #FF9800;
    background: #2a2416;
}

.building-queue-item {
    background: #3a3420;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 4px solid #FF9800;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.resource-item {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.resource-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.resource-info {
    flex: 1;
}

.resource-name {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 4px;
}

.resource-amount {
    color: #4CAF50;
    font-size: 24px;
    font-weight: bold;
}

/* Production Table */
.production-table .data-table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.production-table .data-table th,
.production-table .data-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #333;
}

.production-table .data-table th {
    background: #333;
    font-weight: bold;
    color: #4CAF50;
    text-transform: uppercase;
    font-size: 12px;
}

.production-table .data-table td:first-child {
    text-align: left;
}

.production-table .data-table .positive {
    color: #4CAF50;
    font-weight: bold;
}

.production-table .data-table .total-row {
    background: #2a2a2a;
    font-weight: bold;
}

.production-table .data-table .total-row td {
    border-top: 2px solid #4CAF50;
}

/* Production Timeframes */
.production-timeframes {
    margin-top: 20px;
    background: #2a2a2a;
    padding: 16px;
    border-radius: 4px;
}

.timeframes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.timeframe-item {
    background: #1a1a1a;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #2196F3;
}

.timeframe-label {
    color: #2196F3;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 14px;
}

.timeframe-values {
    display: flex;
    gap: 16px;
    font-size: 13px;
}

.timeframe-values span {
    color: #4CAF50;
    font-weight: bold;
}

/* Collectors Controls */
.collectors-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

.collector-distribution,
.collector-building {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #333;
}

/* Slider Controls */
.slider-container {
    margin: 16px 0;
}

.slider-container.error {
    border: 2px solid #f44336;
    border-radius: 4px;
    padding: 8px;
}

.slider-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ccc;
    font-size: 14px;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #555;
    outline: none;
    margin: 8px 0;
    cursor: pointer;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.metal-slider {
    background: linear-gradient(to right, #666, #888);
}

.metal-slider::-webkit-slider-thumb {
    background: #666;
}

.metal-slider::-moz-range-thumb {
    background: #666;
}

.crystal-slider {
    background: linear-gradient(to right, #2196F3, #64B5F6);
}

.crystal-slider::-webkit-slider-thumb {
    background: #2196F3;
}

.crystal-slider::-moz-range-thumb {
    background: #2196F3;
}

.uran-slider {
    background: linear-gradient(to right, #4CAF50, #81C784);
}

.uran-slider::-webkit-slider-thumb {
    background: #4CAF50;
}

.uran-slider::-moz-range-thumb {
    background: #4CAF50;
}

.percent-input {
    width: 50px;
    padding: 2px 6px;
    background: #333;
    border: 1px solid #555;
    color: #ccc;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    margin-left: 8px;
    text-align: center;
    cursor: default;
    -moz-appearance: textfield; /* Firefox */
}

/* Chrome, Safari, Edge - Spinner Buttons entfernen */
.percent-input::-webkit-outer-spin-button,
.percent-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.percent-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #444;
    color: #fff;
}

.percent-input[readonly] {
    background: #333;
    color: #ccc;
    cursor: default;
}

.total-percentage {
    margin: 8px 0;
    padding: 6px;
    background: #1a1a1a;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}

/* Compact button for energy distribution */
.collector-distribution .btn {
    padding: 6px 12px;
    font-size: 12px;
    margin-top: 8px;
}

/* Building Form */
.building-form .form-group {
    margin-bottom: 16px;
}

.building-form .form-group.error {
    border: 2px solid #f44336;
    border-radius: 4px;
    padding: 8px;
}

.building-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ccc;
}

.building-form select,
.building-form .quantity-input {
    width: 100%;
    padding: 8px 12px;
    background: #444;
    border: 2px solid #666;
    color: #fff;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.building-form .quantity-input {
    -moz-appearance: textfield; /* Firefox */
}

/* Chrome, Safari, Edge - Spinner Buttons entfernen - ALLE RESOURCES INPUTS */
.resources-page input[type="number"]::-webkit-outer-spin-button,
.resources-page input[type="number"]::-webkit-inner-spin-button,
.percent-input::-webkit-outer-spin-button,
.percent-input::-webkit-inner-spin-button,
.building-form .quantity-input::-webkit-outer-spin-button,
.building-form .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

.building-form .quantity-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #555;
}

/* Cost Display */
.cost-display {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border: 2px solid #333;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.cost-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #2a2a2a;
    border-radius: 4px;
}

.cost-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.cost-amount {
    color: #4CAF50;
    font-weight: bold;
    font-size: 14px;
}

.build-time {
    text-align: center;
    color: #FF9800;
    font-weight: bold;
    padding: 8px;
    background: #2a2016;
    border-radius: 4px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    background: #1a1a1a;
    padding: 16px;
    border-radius: 8px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #2196F3;
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.stat-info {
    flex: 1;
}

.stat-label {
    color: #ccc;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.stat-value {
    color: #2196F3;
    font-size: 20px;
    font-weight: bold;
}

/* Button Styles für Resources */
.btn-success {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.btn-success:hover {
    background: #45a049;
    border-color: #45a049;
    transform: translateY(-1px);
}

.btn-disabled {
    background: #555 !important;
    color: #888 !important;
    border-color: #555 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Responsive Resources */
@media (max-width: 768px) {
    .resources-container {
        padding: 0 16px;
    }
    
    .resources-section {
        padding: 16px;
    }
    
    .collectors-controls {
        grid-template-columns: 1fr;
    }
    
    .resources-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timeframes-grid {
        grid-template-columns: 1fr;
    }
    
    .cost-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .production-table {
        overflow-x: auto;
    }
}

/* ===================================================================
   MODULE 10: BUILDINGS SYSTEM STYLES
   =================================================================== */

/* Gebäude-Seite */
.buildings-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Gebäude-Liste */
.buildings-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Gebäude-Reihe (nach Mockup) */
.building-row {
    display: flex;
    align-items: stretch;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s;
    min-height: 120px;
}

.building-row.building {
    border-color: #4CAF50;
    background: #0a2a0a;
}

.building-row.blocked {
    opacity: 0.6;
    background: #222;
    border-color: #333;
}

.building-row.ready:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

/* Gebäude-Bild (Links) */
.building-image {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.building-image img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Stretch to fill entire container, ignore aspect ratio */
    border-radius: 4px;
}

/* Info-Bereich (4 Quadranten) */
.building-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    height: 50%;
}

.info-quadrant {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Titel-Quadrant (Oben Links) */
.title-quadrant h4 {
    margin: 0 0 3px 0;
    font-size: 15px;
    color: #4CAF50;
    font-weight: bold;
}

.level-info {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.build-timer {
    font-size: 11px;
    color: #4CAF50;
    font-family: 'Courier New', monospace;
}

.timer-label {
    color: #888;
}

.timer-value {
    font-weight: bold;
    color: #4CAF50;
}

/* Beschreibung-Quadrant (Oben Rechts) */
.description-quadrant {
    font-size: 11px;
    color: #bbb;
    line-height: 1.3;
}

.requirement-info {
    margin-top: 3px;
    font-size: 10px;
    color: #888;
    font-style: italic;
}

/* Ressourcen-Quadrant (Unten Links) */
.cost-info {
    display: flex;
    gap: 10px;
    margin-bottom: 3px;
    font-size: 11px;
}

.cost-value {
    color: #ddd;
    font-weight: bold;
}

.time-info {
    font-size: 10px;
    color: #888;
    font-family: 'Courier New', monospace;
}

.time-value {
    color: #4CAF50;
    font-weight: bold;
}

.max-level-info {
    font-size: 13px;
    color: #FF9800;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
}

/* Action-Quadrant (Unten Rechts) */
.action-quadrant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.btn-upgrade {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    font-family: inherit;
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    min-width: 90px;
}

.btn-upgrade:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.btn-cancel {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    font-family: inherit;
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    min-width: 90px;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.buildings-page .btn-disabled {
    background: #555;
    color: #888;
    border: none;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    font-family: inherit;
    cursor: not-allowed;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    min-width: 90px;
}

.eta-info {
    font-size: 10px;
    color: #888;
    text-align: center;
    font-family: 'Courier New', monospace;
}

/* Info Button (Rechts) */
.building-info-btn {
    margin-left: 10px;
    display: flex;
    align-items: flex-start;
    padding-top: 5px;
}

.btn-info {
    width: 20px;
    height: 20px;
    background: #666;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-info:hover {
    background: #777;
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 900px) {
    .buildings-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .buildings-page {
        padding: 15px;
    }
    
    .building-row {
        flex-direction: column;
        padding: 10px;
        min-height: auto;
    }
    
    .building-image {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px auto;
    }
    
    .info-row {
        flex-direction: column;
        gap: 8px;
        height: auto;
    }
    
    .info-quadrant {
        text-align: center;
    }
    
    .building-info-btn {
        margin: 8px auto 0 auto;
    }
}

@media (max-width: 480px) {
    .buildings-page {
        padding: 10px;
    }
    
    .buildings-list {
        gap: 20px;
    flex-wrap: wrap;
    }
    
    .building-row {
        padding: 8px;
    }
    
    .building-image {
        width: 50px;
        height: 50px;
    }
    
    .title-quadrant h4 {
        font-size: 14px;
    }
    
    .btn-upgrade, .btn-cancel, .buildings-page .btn-disabled {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 100px;
    }
}

/* ===================================================================
   BUILDING INFO PAGE STYLES
   =================================================================== */

.building-info-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.back-navigation {
    margin-bottom: 20px;
}

.btn-back {
    background: #666;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #777;
    color: white;
    text-decoration: none;
}

.building-info-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 20px;
}

.building-info-image {
    width: 120px;
    height: 120px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.building-info-image img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Stretch to fill entire container, ignore aspect ratio */
}

.building-info-title h2 {
    margin: 0 0 10px 0;
    color: #4CAF50;
    font-size: 24px;
}

.current-level-info {
    font-size: 16px;
    color: #ddd;
    margin-bottom: 10px;
}

.requirement-notice {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

.building-description-detailed {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.building-description-detailed h3 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    font-size: 18px;
}

.building-description-detailed p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 15px;
}

.extended-description {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

.extended-description h4 {
    margin: 0 0 10px 0;
    color: #4CAF50;
    font-size: 16px;
}

.level-information {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.level-information h3 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    font-size: 18px;
}

.level-table table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
}

.level-table th {
    background: #333;
    color: #ddd;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #444;
    font-weight: bold;
}

.level-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #333;
    color: #ddd;
}

.level-table tr:hover {
    background: #333;
}

.level-table tr.current-level {
    background: #0a2a0a;
    border: 2px solid #4CAF50;
}

.level-table tr.next-level {
    background: #2a2a0a;
    border: 2px solid #FF9800;
}

.level-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 8px;
}

.level-badge.current {
    background: #4CAF50;
    color: white;
}

.level-badge.next {
    background: #FF9800;
    color: white;
}

.more-levels td {
    text-align: center;
    color: #888;
    font-style: italic;
}

.building-actions-detailed {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.building-actions-detailed h3 {
    margin: 0 0 15px 0;
    color: #4CAF50;
    font-size: 18px;
}

.upgrade-summary h4 {
    margin: 0 0 10px 0;
    color: #ddd;
    font-size: 16px;
}

.upgrade-costs-detailed {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cost-item, .time-item {
    background: #333;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: bold;
    color: #ddd;
    font-size: 14px;
}

.time-item {
    background: #4CAF50;
    color: white;
    font-family: 'Courier New', monospace;
}

.btn-upgrade-detailed {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    border-radius: 6px;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-upgrade-detailed:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.upgrade-blocked, .building-maxed {
    text-align: center;
    color: #888;
    padding: 20px;
}

.upgrade-blocked h4, .building-maxed h3 {
    color: #888;
    margin-bottom: 10px;
}

/* Responsive für Building Info */
@media (max-width: 768px) {
    .building-info-page {
        padding: 15px;
    }
    
    .building-info-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .building-info-image {
        margin: 0 auto;
    }
    
    .upgrade-costs-detailed {
        justify-content: center;
        gap: 20px;
    flex-wrap: wrap;
    }
    
    .level-table {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .building-info-page {
        padding: 10px;
    }
    
    .building-info-header,
    .building-description-detailed,
    .level-information,
    .building-actions-detailed {
        padding: 15px;
    }
    
    .building-info-image {
        width: 100px;
        height: 100px;
    }
    
    .building-info-title h2 {
        font-size: 20px;
    }
    
    .cost-item, .time-item {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ===================================================================
   HANGAR PAGE STYLES
   =================================================================== */

.hangar-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.hangar-overview {
    background: var(--panel-bg, #2a2a2a);
    border: 2px solid var(--border-color, #444);
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 8px;
}

.hangar-overview h2 {
    margin: 0 0 16px 0;
    font-size: 24px;
    color: var(--text-primary, #ffffff);
}

.hangar-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--input-bg, #1a1a1a);
    border: 1px solid var(--border-color, #444);
    border-radius: 4px;
}

.stat-label {
    font-weight: bold;
    color: var(--text-secondary, #cccccc);
}

.stat-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--text-primary, #ffffff);
}

.resource-display {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--panel-bg, #2a2a2a);
    border: 1px solid var(--border-color, #444);
    border-radius: 4px;
    flex-wrap: wrap;
}

.resource-display .resource-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-primary, #ffffff);
}

.resource-icon {
    font-size: 16px;
}

.resource-label {
    font-weight: bold;
    color: var(--text-secondary, #cccccc);
}

.resource-value {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--text-primary, #ffffff);
    min-width: 120px;  /* Ensure consistent width to prevent jumping */
    display: inline-block;
    text-align: right;
}

.production-queue {
    background: var(--warning-bg, #3a3a2a);
    border: 2px solid var(--warning-color, #ffcc00);
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 8px;
}

.production-queue h3 {
    margin: 0 0 16px 0;
    color: var(--warning-color, #ffcc00);
}

.queue-item {
    padding: 12px;
    background: var(--panel-bg, #2a2a2a);
    border: 1px solid var(--warning-color, #ffcc00);
    margin-bottom: 12px;
    border-radius: 4px;
}

.queue-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ship-name {
    font-weight: bold;
    color: var(--text-primary, #ffffff);
}

.quantity {
    background: var(--warning-color, #ffcc00);
    color: var(--bg-primary, #1a1a1a);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.position {
    color: var(--text-secondary, #cccccc);
    font-size: 12px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--input-bg, #1a1a1a);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color, #00aa00) 0%, var(--accent-color, #00d4ff) 100%);
    transition: width 0.5s ease;
}

.time-remaining {
    font-size: 12px;
    color: var(--text-secondary, #cccccc);
    font-weight: bold;
}

.ship-category {
    margin-bottom: 32px;
}

.ship-category h3 {
    font-size: 20px;
    color: var(--text-primary, #ffffff);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color, #444);
}

.ships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.ship-card {
    background: var(--panel-bg, #2a2a2a);
    border: 2px solid var(--border-color, #444);
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.3s ease;
}

.ship-card.available {
    border-color: var(--success-color, #00aa00);
}

.ship-card.blocked {
    border-color: var(--text-muted, #666666);
    background: var(--panel-bg-dark, #1a1a1a);
}

.ship-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #444);
}

.ship-header h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary, #ffffff);
}

/* Ship Title */
.ship-title {
    margin-bottom: 12px;
}

.ship-title h4 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary, #ffffff);
    border-bottom: 1px solid var(--border-color, #444);
    padding-bottom: 8px;
}

/* Main 2-Column Layout */
.ship-main-info {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.ship-left {
    flex-shrink: 0;
    width: 140px;
}

.ship-right {
    flex: 1;
}

/* Left Column - Image Only */
.ship-image-container {
    width: 120px;
    height: 120px;
    border: 1px solid var(--border-color, #444);
    border-radius: 4px;
    overflow: hidden;
    background: var(--panel-bg, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ship-image-container img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Stretch to fill entire container, ignore aspect ratio */
    display: block;
}

/* Right Column - Description */
.ship-description-text {
    color: var(--text-secondary, #cccccc);
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
}

.ship-description {
    color: var(--text-secondary, #cccccc);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* GAMING HUD INFO BOX */
.ship-info-box {
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    border: 2px solid #00ff88;
    border-radius: 0;
    padding: 12px;
    margin-bottom: 12px;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    position: relative;
}

.ship-info-box::before {
    content: "COSTS";
    position: absolute;
    top: -1px;
    right: 15px;
    background: #00ff88;
    color: #000;
    padding: 2px 8px;
    font-size: 9px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.hud-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hud-costs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex: 1;
    margin-right: 15px;
}

.hud-cell {
    text-align: center;
    padding: 8px 4px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    font-size: 11px;
    position: relative;
}

.hud-icon {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.hud-label {
    font-size: 8px;
    color: #00ff88;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.hud-duration {
    text-align: center;
    color: #00ff88;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
    min-width: 60px;
}

.owned-display {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 8px;
    text-align: center;
}

.owned-label {
    font-size: 8px;
    color: #00ff88;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    margin-bottom: 2px;
}

.owned-number {
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

/* DYNAMIC TOTAL DISPLAY - Color coded */
.total-costs {
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
    text-align: center;
    display: none;
    transition: all 0.3s ease;
    border: 2px solid;
}

.total-costs.show {
    display: block;
}

.total-costs.affordable {
    background: rgba(100, 200, 255, 0.1);
    border-color: #64c8ff;
}

.total-costs.unaffordable {
    background: rgba(255, 100, 100, 0.1);
    border-color: #ff6464;
}

.total-label {
    font-size: 9px;
    font-weight: bold;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.total-costs.affordable .total-label {
    color: #64c8ff;
}

.total-costs.unaffordable .total-label {
    color: #ff6464;
}

.total-values {
    display: flex;
    justify-content: space-around;
    font-size: 11px;
    font-weight: bold;
}

/* Max-clickable button styling */
.max-clickable {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: inline-block;
    border: 1px solid transparent;
}

.max-clickable:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--accent-color, #00d4ff);
    color: var(--accent-color, #00d4ff);
    transform: scale(1.05);
    text-shadow: 0 0 4px rgba(0, 212, 255, 0.5);
}

.requirement-warning {
    background: var(--error-bg, #4a2a2a);
    color: var(--error-color, #ff4444);
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
}

.ship-actions {
    border-top: 1px solid var(--border-color, #444);
    padding-top: 12px;
}

/* Bottom Action Row */
.ship-actions {
    border-top: 1px solid var(--border-color, #444);
    padding-top: 12px;
    margin-top: 12px;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-section label {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-primary, #ffffff);
}

.quantity-input-field {
    width: 60px;
    padding: 6px;
    border: 1px solid var(--border-color, #444);
    border-radius: 4px;
    font-family: inherit;
    text-align: center;
    background: var(--input-bg, #1a1a1a);
    color: var(--text-primary, #ffffff);
    font-size: 14px;
    /* Remove number input spinners/arrows */
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

/* Hide number input spinners for WebKit browsers */
.quantity-input-field::-webkit-outer-spin-button,
.quantity-input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.produce-section {
    flex: 1;
}

.btn-produce-inline {
    background: linear-gradient(135deg, var(--success-color, #00aa00), var(--success-color-dark, #008800));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-produce-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 170, 0, 0.3);
}

/* Mobile responsiveness for hangar */
@media (max-width: 768px) {
    .hangar-page {
        padding: 16px;
    }
    
    .ships-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .hangar-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .resource-display {
        flex-direction: column;
        gap: 12px;
    }
    
    .production-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
}

/* Animation for progress bars */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.queue-item .progress-fill {
    animation: pulse 2s infinite;
}
/* ===================================================================
   RESOURCES PAGE STYLES
   Kollektoren-Management, Slider, Produktionstabellen
   =================================================================== */

/* Resources Page Layout */
.resources-container .section {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.resources-container .section-header {
    background: linear-gradient(90deg, #FFA726, #FF8F00);
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
}

.resources-container .section-content {
    padding: 20px;
}

/* Collectors Management Layout */
/* Removed - handled by inline styles in resources_ui.php to avoid cascade conflicts */

/* Removed - handled by inline styles in resources_ui.php to avoid cascade conflicts */

.collector-distribution h4 {
    color: #FFA726;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Compact Slider Styling - 50% height reduction */
.slider-container {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.slider-label {
    color: #FFA726;
    font-weight: bold;
    font-size: 12px;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
    margin: 5px 0;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
}

.percent-input {
    width: 70px;
    padding: 5px;
    background: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 4px;
    margin-top: 5px;
}

.total-percentage {
    margin: 15px 0;
    padding: 10px;
    background: #1a1a1a;
    border-radius: 8px;
    text-align: center;
    color: #FFA726;
    font-size: 16px;
}

/* Production Tables */
.resources-container table {
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.resources-container th,
.resources-container td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.resources-container th {
    background: #333;
    color: #FFA726;
    font-weight: bold;
}

.resources-container .positive {
    color: #4CAF50;
}

.resources-container .resource-header {
    background: #2a2a2a;
    border-top: 2px solid #FFA726;
}

.resources-container .resource-header td {
    color: #FFA726;
    font-weight: bold;
}

/* Buttons */
.btn.btn-primary {
    background: #FFA726;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.btn.btn-primary:hover {
    background: #FF8F00;
}

.btn.btn-disabled {
    background: #666;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .collectors-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    flex-wrap: wrap;
    }
}

/* ===================================================================
   COMBAT CALCULATOR RESOURCE LOSS DISPLAY
   =================================================================== */

/* Resource Loss Grid Display */
.resource-loss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.resource-loss-grid .resource-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.resource-loss-grid .resource-item:hover {
    border-color: #4CAF50;
    transform: translateY(-1px);
}

.resource-loss-grid .resource-label {
    color: #ccc;
    font-size: 12px;
    font-weight: bold;
    min-width: 50px;
}

.resource-loss-grid .resource-value {
    color: #4CAF50;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    text-align: right;
    flex: 1;
}

/* Combat Result Sections */
.combat-result-section {
    background: #252525;
    border: 2px solid #444;
    border-radius: 8px;
    margin: 20px 0;
    padding: 16px;
}

.combat-result-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

/* Color coding for different loss types */
.losses-title.attacker {
    color: #f44336;
    border-bottom-color: #f44336;
}

.losses-title.defender {
    color: #2196F3;
    border-bottom-color: #2196F3;
}

.losses-title.neutral {
    color: #FF9800;
    border-bottom-color: #FF9800;
}

.losses-title.debris {
    color: #9C27B0;
    border-bottom-color: #9C27B0;
}

/* Section borders match title colors */
.combat-result-section.attacker-losses {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.05);
}

.combat-result-section.defender-losses {
    border-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.combat-result-section.debris-field {
    border-color: #9C27B0;
    background: rgba(156, 39, 176, 0.05);
}

.combat-result-section.defender-gains {
    border-color: #FF9800;
    background: rgba(255, 152, 0, 0.05);
}

/* Responsive for resource loss display */
@media (max-width: 768px) {
    .resource-loss-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .combat-result-section {
        padding: 12px;
        margin: 16px 0;
    }

    .combat-result-section h4 {
        font-size: 14px;
    }

    .resource-loss-grid .resource-item {
        padding: 6px 8px;
    }

    .resource-loss-grid .resource-label {
        font-size: 11px;
        min-width: 40px;
    }

    .resource-loss-grid .resource-value {
        font-size: 12px;
    }
}

/* ===================================================================
   MINIMAL BLUE HEADER DESIGN - Live Implementation
   =================================================================== */

/* Header V2: Minimal Blue Style */
.game-header-v2-minimal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Logo Section */
.minimal-logo-section {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-left: -15px;
    height: 65px;
}

.minimal-logo {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    height: 65px;
    padding: 0;
}

.exulo-logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* User badge removed - now using .minimal-stat-group */

/* Combat Alert - First Position */
.minimal-combat-alert {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: minimal-pulse 1.5s ease-in-out infinite;
    border: 2px solid rgba(239, 68, 68, 0.3);
    margin-right: 15px;
}

.minimal-combat-alert::before {
    content: "⚠";
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    animation: minimal-dot-pulse 1s ease-in-out infinite alternate;
}

/* Central Content Area */
.minimal-content {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Resource Cards */
.minimal-resources {
    display: flex;
    gap: 10px;
}

.minimal-resource-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 180px;
    text-align: center;
    transition: all 0.2s ease;
}

.minimal-resource-card:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.minimal-resource-icon {
    font-size: 20px;
    margin-bottom: 4px;
    display: block;
}

.minimal-resource-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    font-family: 'Courier New', monospace;
}

/* Right Side Stats + Time + Logout */
.minimal-right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* Time Section Redesigned */
.minimal-time-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.minimal-time-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.minimal-time-value-large {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.minimal-time-ticks {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.minimal-time-tick-row {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 100px;
    height: 30px;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Credits clickable hover effect */
.credits-clickable:hover {
    background: rgba(255, 193, 7, 0.15) !important;
    border-color: rgba(255, 193, 7, 0.5) !important;
    box-shadow: 0 0 12px rgba(255, 193, 7, 0.3);
    transform: translateY(-1px);
}

.credits-clickable:hover .minimal-time-label,
.credits-clickable:hover .minimal-time-value-large {
    color: #FFD54F !important;
}

/* Keep old classes for backwards compatibility */
.minimal-time-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.minimal-time-row {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    padding: 2px 8px;
    display: flex;
    justify-content: space-between;
    min-width: 75px;
}

.minimal-time-label {
    font-size: 10px;
    color: rgba(59, 130, 246, 0.8);
    font-weight: 500;
    line-height: 1;
}

.minimal-time-value {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Courier New', monospace;
}

/* Stats Section */
.minimal-stats-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: -40px;
    margin-right: 10px;
}

.minimal-stats-row {
    display: flex;
    gap: 12px;
}

.minimal-stats-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.minimal-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.minimal-stat-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    height: 26px;
    min-width: 90px;
}

.minimal-stat-username {
    min-width: 140px;
}

.minimal-stat-label {
    font-size: 9px;
    color: rgba(59, 130, 246, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.minimal-stat-value {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
}

/* ✅ NEW (2025-11-19): Clickable stat groups (Platz, Punkte) */
.minimal-stat-clickable {
    transition: all 0.2s ease;
}

.minimal-stat-clickable:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Logout Button */
.minimal-logout {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: rgba(59, 130, 246, 0.9);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.minimal-logout:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

@keyframes minimal-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

@keyframes minimal-dot-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Navigation Sidebar - Blue Theme */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 65px;
    bottom: 0;
    width: 200px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(37, 99, 235, 0.05));
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 999;
    overflow-y: auto;
    padding-top: 20px;
}

.nav-header {
    padding: 0 20px 15px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 15px;
    background: transparent !important;
}

.newbie-protection {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.attack-protection {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.attack-protection.pending {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Protection Buy Button with Timer */
.protection-buy-btn {
    position: relative;
    overflow: hidden;
    min-height: 40px;
    transition: all 0.3s ease;
}

.protection-buy-btn:disabled {
    background: rgba(107, 114, 128, 0.3) !important;
    border-color: rgba(107, 114, 128, 0.4) !important;
    cursor: not-allowed;
}

.protection-buy-btn .btn-text {
    position: relative;
    z-index: 2;
}

.cooldown-timer {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 11px;
    color: #fbbf24;
    font-weight: bold;
    z-index: 3;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0 0 4px 4px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #ffffff;
    border-left-color: rgba(59, 130, 246, 0.5);
    text-decoration: none;
}

.nav-item.active .nav-link {
    background: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    border-left-color: #3b82f6;
}

.nav-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

/* Content Area with Sidebar */
.content-area {
    position: absolute;
    top: 65px;
    left: 200px;
    right: 0;
    bottom: 0;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

.page-header {
    margin: 0;
    padding: 20px 20px 0 20px;
    background: transparent !important;
    background-color: transparent !important;
}

main .page-header h2,
.content-area .page-header h2,
.page-header h2,
h2 {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    opacity: 1 !important;
}

.page-content {
    background: rgba(26, 26, 26, 0.95);
    border-radius: 0;
    padding: 20px;
    color: #e0e0e0;
    margin: 0;
    min-height: calc(100vh - 65px - 60px);
}

/* Status Display Styles for Protection & Vacation System */
.status-display {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    background: #333;
    color: #999;
}

.status-display.active {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}

.status-display.pending {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
    border-color: #FF9800;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
}



/* ========================================
   MINIMAL FOOTER - ULTRA SLIM & STICKY
   ======================================== */

.exulo-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0d0d0d;
    border-top: 1px solid #333;
    padding: 4px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75em;
    color: #666;
    z-index: 1000;
    height: 24px;
    position: relative;
}

.footer-left {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 2px 4px;
}

.footer-link:hover {
    color: #ffd700;
}

.footer-separator {
    color: #444;
    user-select: none;
}

.footer-copyright {
    color: #666;
}

.footer-debug {
    color: #555;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Add padding to main content to prevent footer overlap */
.main-layout,
.login-layout {
    padding-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .exulo-footer {
        flex-direction: column;
        gap: 4px;
        padding: 6px 10px;
        font-size: 0.7em;
        height: auto;
    }

    .footer-left {
        position: static;
    }

    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   ONLINE PLAYER COUNTER (Game Footer)
   ======================================== */

.online-counter-game {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(0, 243, 255, 0.8);
    font-size: 0.8em;
}

.online-counter-game .online-indicator {
    font-size: 0.65em;
    animation: onlinePulseGame 2s ease-in-out infinite;
}

.online-counter-game .online-count {
    font-weight: 500;
}

@keyframes onlinePulseGame {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ========================================
   RESOURCE BOOST SELECTION MODAL
   ======================================== */

.resource-selection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.resource-selection-modal.active {
    display: flex;
}

.resource-modal-content {
    background: linear-gradient(135deg, #0a1929 0%, #1a2332 100%);
    border: 2px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.3);
}

.resource-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.resource-modal-header h3 {
    color: #00f3ff;
    font-size: 1.8em;
    margin: 0 0 10px 0;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.resource-modal-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1em;
}

.resource-grid {
    display: grid;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.resource-boost-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    flex: 0 0 auto;
    min-width: 150px;
}

.resource-boost-option:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: #00f3ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.4);
}

.resource-boost-option .boost-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.3));
}

.resource-boost-option .boost-label {
    color: #fff;
    font-size: 0.9em;
    font-weight: 500;
}

.modal-cancel {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Confirmation Modal Specific Styles */
.confirmation-modal {
    max-width: 600px;
}

.confirmation-content {
    text-align: center;
    padding: 10px 0;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.modal-confirm-btn,
.modal-cancel-btn {
    padding: 12px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.modal-confirm-btn {
    background: linear-gradient(135deg, #FFA726, #FF8F00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.4);
}

.modal-confirm-btn:hover {
    background: linear-gradient(135deg, #FFB74D, #FFA726);
    box-shadow: 0 6px 20px rgba(255, 167, 38, 0.6);
    transform: translateY(-2px);
}

.modal-cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .resource-boost-option .boost-image {
        width: 60px;
        height: 60px;
    }

    .resource-modal-content {
        padding: 20px;
    }

    .confirmation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .modal-confirm-btn,
    .modal-cancel-btn {
        width: 100%;
    }
}

/* ========================================
   ACTIVE BOOSTS DISPLAY
   ======================================== */

.active-boosts-display {
    background: rgba(0, 243, 255, 0.05);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.active-boost-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}

.active-boost-item:last-child {
    margin-bottom: 0;
}

.boost-active-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.boost-active-info strong {
    color: #00f3ff;
    font-size: 1em;
}

.boost-expires {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
}

/* ========================================

.resource-production-row {
    margin-bottom: 12px;
}

.resource-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #00f3ff;
}

.resource-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tick-value-box {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

/* ========================================
   RESOURCE PRODUCTION BOOST SEGMENTS
   ======================================== */

.resource-production-container {
    margin-top: 15px;
}

.resource-production-row {
    margin-bottom: 12px;
}

.resource-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: #00f3ff;
}

.resource-bar {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tick-value-box {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.boost-segment {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid rgba(0, 243, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

/* Inactive boost segments - same border as tick box */
.boost-segment[data-active="false"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
}

/* Active boost segments - ALL identical gold/yellow with cyan border */
.boost-segment[data-active="true"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.15)) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
    font-weight: bold;
}

/* Ensure 30% segments also get gold styling - specificity override */
.boost-segment.boost-30[data-active="true"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.15)) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5) !important;
}

/* ===================================================================
   GAME FREEZE BANNER - Verschiebt Header wenn Banner aktiv
   =================================================================== */

/* Verschiebe den fixed Header nach unten wenn Banner aktiv */
body.has-frozen-banner .game-header-v4 {
    top: 36px !important;
}

/* Verschiebe auch den Sidebar Container */
body.has-frozen-banner .sidebar-container {
    top: calc(60px + 36px) !important;
}

/* KORREKTUR: Richtiger Header Selector */
body.has-frozen-banner .game-header-v2-minimal {
    top: 36px !important;
}
