/* bot_app/web_app/css/base.css */

/* Глобальные переменные и сброс стилей */
@font-face {
    font-family: 'Oswald';
    src: url('/Oswald/Oswald-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #121212;
    --primary-color: #1e1e1e;
    --secondary-color: #2a2a2a;
    --text-color: #e0e0e0;
    --accent-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden; /* Ensure horizontal scroll is hidden */
    overflow-y: auto; /* Allow vertical scroll */
}

/* Center loading message inside a grid container */
.scrollable-grid > .loading-message {
    grid-column: 1 / -1; /* Span across all columns */
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: var(--text-color-secondary, #888);
}

/* Remove focus outline from inputs */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.spinner-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top: 4px solid var(--text-color);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.4s;
    border-top-color: var(--accent-color);
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.8s;
    border-top-color: var(--success-color);
}

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

.loading-text {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.main-content {
    width: 100%;
    height: 100%;
}
