/* Basic reset and body setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000000;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* New Loading Placeholder (Phong cách deferredFadeRoute) */
.deferred-loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Gradient tối theo code Flutter */
    background: linear-gradient(to bottom right, #1a1a1a, #000000, #0d0d0d);
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Gradient đa sắc cho vòng tròn */
    background: linear-gradient(45deg, #4CAF50, #2196F3, #9C27B0);
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Spinner giả lập CircularProgressIndicator */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Ẩn placeholder khi Flutter đã sẵn sàng */
.loading-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Font warm-up hidden class */
.font-warmup {
    position: absolute;
    visibility: hidden;
    font-size: 0px;
    pointer-events: none;
}
