/* Axiis — BaseUp VTS Integration */
* {
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f6f8;
    min-height: 100vh;
    color: #1f2937;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100vh;
}

/* Top bar */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Cards */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-active {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Buttons */
button {
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    font-size: 15px;
    min-height: 44px;
    padding: 10px 20px;
}

button:active:not(:disabled) {
    transform: scale(0.98);
}

button.primary {
    background-color: #2D72D2;
    color: #ffffff;
}

button.primary:hover:not(:disabled) {
    background-color: #1d5cb8;
}

button.secondary {
    background-color: #f3f4f6;
    color: #374151;
}

button.secondary:hover:not(:disabled) {
    background-color: #e5e7eb;
}

/* Form elements */
input,
select {
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 16px;
    min-height: 44px;
    width: 100%;
    transition: border-color 0.15s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2D72D2;
    box-shadow: 0 0 0 3px rgba(45, 114, 210, 0.1);
}

label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #111827;
    margin: 0;
}

p {
    margin: 0;
}

/* Section spacing */
.section {
    padding: 16px;
}

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

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

/* Toast slide-in animation */
@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.empty-state h3 {
    color: #374151;
    margin-bottom: 8px;
}

/* Scroll list */
.scroll-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Touch-friendly for mobile/webview */
@media (hover: none) and (pointer: coarse) {
    button,
    input,
    select {
        min-height: 44px;
    }
}

/* Responsive */
@media (min-width: 480px) {
    .section {
        padding: 20px;
    }
}
