/* Base Styles */
html, body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Loading Splash */
.loading-app {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1e293b;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error UI */
#blazor-error-ui {
    background-color: #ef4444;
    bottom: 0;
    color: white;
    display: none;
    padding: 0.75rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    text-align: center;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    #blazor-error-ui .reload {
        color: white;
        font-weight: bold;
        text-decoration: underline;
        margin: 0 0.5rem;
    }

/* Page Structure */
.page-container {
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    margin-bottom: 1.5rem;
}

/* Combat Page */
.combat-page {
    height: 100%;
    min-height: calc(100vh - 64px);
    position: relative;
}

/* Results Panel */
.results-panel {
    padding: 2rem;
    max-width: 600px;
}

.stat-item {
    text-align: center;
}

/* Tower View */
.tower-structure {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
}

.floor-details {
    padding: 1.5rem;
}

.progress-stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 0.75rem;
    }
}

.white-text {
    color:aliceblue;
}