/* Global UI styling for buttons and badges */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #4e54c8;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-primary { background: #4e54c8; color: #fff; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-success { background: #2ecc71; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-warning { background: #f0ad4e; color: #222; }
.btn-info { background: #3498db; color: #fff; }
.btn-neutral { background: #f0f1f7; color: #2a2e7a; border-color: #d8daeb; }
.btn-outline { background: #fff; color: #4e54c8; border-color: #4e54c8; }
.btn-ghost { background: transparent; color: #4e54c8; border-color: transparent; box-shadow: none; }

.btn-sm { padding: 7px 12px; font-size: 0.9rem; }
.btn-lg { padding: 12px 18px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 50%; justify-content: center; }

.btn svg { width: 16px; height: 16px; }

.badge-muted {
    background: #eef0ff;
    color: #4e54c8;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* mobile-first tweaks */
body { margin: 0; padding: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* stack cards and form columns on narrow screens */
@media (max-width: 768px) {
  .grid,
  .row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  table { display: block; width: 100%; overflow-x: auto; }
  nav, header { padding: 0.75rem 1rem; }
  button, input, select { width: 100%; max-width: 100%; }
}
