/**
 * ============================================
 * Base Styles & Reset
 * ============================================
 * 
 * Light theme default with compact sizing.
 * 
 * @package Botteraabox
 * @subpackage Assets
 */

/* ============================================
   CSS Reset
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-body);
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   Typography - Compact
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

h1 {
    font-size: var(--text-3xl);
}

h2 {
    font-size: var(--text-2xl);
}

h3 {
    font-size: var(--text-xl);
}

h4 {
    font-size: var(--text-lg);
}

h5 {
    font-size: var(--text-base);
}

p {
    color: var(--text-secondary);
    margin: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Don't change button text color on hover */
a.btn:hover {
    color: inherit;
}

a.btn-primary:hover,
a.btn-primary:focus {
    color: white;
}

small {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

code {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: 2px 6px;
    background: var(--bg-hover);
    border-radius: var(--radius-sm);
}

/* ============================================
   Tables - Compact
   ============================================ */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

th,
td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--bg-hover);
}

tr:hover td {
    background: var(--bg-hover);
}

/* ============================================
   Form Base
   ============================================ */

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Utilities - Compact
   ============================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--color-success);
}

.text-error {
    color: var(--color-error);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-xs {
    font-size: var(--text-xs);
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.w-full {
    width: 100%;
}