/* Material Symbols */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: middle;
    /* Prevent icon ligature text from showing before font loads */
    font-display: swap;
    /* Hide text until font is ready */
    color: transparent;
    transition: color 0.1s ease-in;
}

/* Show icons once font is loaded */
body.fonts-loaded .material-symbols-outlined {
    color: inherit;
}

/* Blueprint v6 fixes for standalone HTML */
.bp5-button {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bp5-tab {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    position: relative;
}

.bp5-tab[aria-selected="true"] {
    box-shadow: none;
}

.bp5-tab[aria-selected="true"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #137cbd;
}

.bp5-tab .material-symbols-outlined {
    font-size: 20px;
}

.bp5-select select {
    cursor: pointer;
}

.bp5-tabs {
    flex-shrink: 0; /* Don't shrink */
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    background: #f5f8fa;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #182026;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #E1E8ED;
    padding: clamp(0.45rem, 1.5vw, 0.9rem) clamp(1rem, 4vw, 3rem);
    flex-shrink: 0; /* Don't shrink */
}

.header-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.header-title-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1 1 240px;
}

.header-title {
    font-size: clamp(1.3rem, 3vw, 2.1rem);
    font-weight: 700;
    margin: 0;
    color: #182026;
}

.header-subtitle {
    font-size: 0.85rem;
    color: #5C7080;
    margin: 0;
}

.header-phase {
    font-size: 0.8rem;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding-inline: 0.65rem;
}

/* Legacy classes for backward compatibility */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header h1 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Footer */
.footer {
    border-top: 1px solid #E1E8ED;
    margin-top: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    color: #5C7080;
    font-size: 0.9rem;
}

.footer-content {
    padding: 0 clamp(1rem, 4vw, 3rem);
    text-align: center;
}

/* Hide scrollbar but keep functionality */
.custom-scroll::-webkit-scrollbar {
    display: none;
}

/* Loading spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Keyboard shortcut styling */
kbd {
    display: inline-block;
    padding: 2px 5px;
    font-family: monospace;
    font-size: 10px;
    line-height: 1.4;
    color: #182026;
    background-color: #f5f8fa;
    border: 1px solid #bfccd6;
    border-radius: 3px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
    white-space: nowrap;
}
