/* Dashboard Styles */

/* Body styling for dashboard */
body {
    font-family: 'Exo 2', sans-serif;
    background: url('https://starpath-game.de/00030-129709930.png') center center / cover no-repeat fixed;
    color: #ffffff;
    overflow-x: hidden;
}

/* Animated Stars Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

/* Dashboard Specific Styles */

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    background-color: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.dashboard-header .player-info {
    display: flex;
    gap: 1rem;
    font-size: 1rem;
    color: #cccccc;
}

.dashboard-header .header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dashboard Main Content */
.dashboard-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 2rem;
    grid-template-areas:
        "welcome welcome"
        "actions resources"
        "activity fleet";
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
}

/* Player Progress Section */
.player-progress-section {
    margin-bottom: 2rem;
}

.pilot-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.pilot-card:hover {
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.2);
}

.pilot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.pilot-header h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    font-size: 1.3rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.pilot-rank {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.3);
}

.pilot-stats .stat-bar {
    margin-bottom: 1rem;
}

.pilot-stats .stat-bar label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.exp-bar {
    position: relative;
    width: 100%;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88, #00d4ff);
    background-size: 200% 100%;
    border-radius: 12px;
    transition: width 0.5s ease;
    animation: expGlow 3s ease-in-out infinite alternate;
}

@keyframes expGlow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    }
    100% {
        background-position: 100% 50%;
        box-shadow: 0 0 20px rgba(0, 255, 136, 1.0);
    }
}

.exp-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.rank-progress-info {
    text-align: center;
    color: #00ff88;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 0;
}

.welcome-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.welcome-card h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 212, 255, 0.5);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.mothership-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 150, 255, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.status-icon {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.status-text {
    flex: 1;
}

.status-text h4 {
    color: #00d4ff;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.status-text p {
    color: #e0e0e0;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.mission-status {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.quick-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff88;
    font-family: 'Orbitron', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin-top: 0.5rem;
}

/* Quick Actions removed - using top navigation instead */

/* Action cards removed - using top navigation instead */

/* Resources Section */
.resources-section {
    grid-area: resources;
}

.resources-section h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.resources-grid .resource-item {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.resources-grid .resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

.resources-grid .resource-icon {
    font-size: 2rem;
}

.resources-grid .resource-info h4 {
    color: #00d4ff;
    margin-bottom: 0.25rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

.resources-grid .resource-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
}

/* Activity Section */
.activity-section {
    grid-area: activity;
}

.activity-section h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.activity-feed {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 0.8rem;
    color: #888888;
    margin-bottom: 0.25rem;
}

.activity-text {
    color: #cccccc;
    line-height: 1.4;
}

/* Fleet Section */
.fleet-section {
    grid-area: fleet;
}

.fleet-section h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.fleet-grid {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.3);
}

.ship-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ship-summary:last-child {
    border-bottom: none;
}

.ship-icon {
    font-size: 2rem;
}

.ship-details h4 {
    color: #00d4ff;
    margin-bottom: 0.25rem;
    font-family: 'Orbitron', monospace;
}

.ship-details p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0.1rem 0;
}

/* Scrollbar Styling */
.activity-feed::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* Admin Button Styling */
.btn-warning {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    border: none;
    margin-right: 10px;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    transform: translateY(-2px);
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .dashboard-main {
        grid-template-columns: 1fr;
        grid-template-areas:
            "welcome"
            "actions"
            "resources"
            "activity"
            "fleet";
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 10px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .dashboard-main {
        padding: 1rem;
        gap: 1rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-card {
        padding: 1.5rem;
    }
    
    .welcome-card h2 {
        font-size: 1.5rem;
    }
    
    .quick-stats {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .dashboard-header h1 {
        font-size: 1.4rem;
    }
    
    .welcome-card h2 {
        font-size: 1.3rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .action-icon {
        font-size: 2rem;
    }
}