/* Sun Cupid OA - Mobile-first styles */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f7fa;
    color: #333;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 70px; /* bottom nav */
}

/* Header */
.app-header {
    background: #1e3a5f;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.app-header .logo {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}
.header-right { display: flex; align-items: center; gap: 12px; }
.user-info { font-size: 14px; opacity: 0.9; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-sm {
    padding: 6px 12px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    border-top: 1px solid #e0e0e0;
    z-index: 10;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}
.nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #999;
    padding: 4px 0;
}
.nav-item.active { color: #1e3a5f; }
.nav-icon { font-size: 22px; display: block; }
.nav-label { font-size: 11px; }

/* Utilities */
a { color: #1e3a5f; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1e3a5f !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 40px; height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #1e3a5f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
