/* css/base.css */

/* === RESET & BASE === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-root); /* Sets base for rem units */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #e0e0e0;
    margin: 0;
    padding: 30px;
    min-height: 100vh;
    box-sizing: border-box;
}

.management-container {
    max-width: 2000px; margin: 0 auto; background-color: #1f2a40;
    padding: 25px;padding-top: 15px; border-radius: 20px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); transition: background-color 0.3s ease;
}

/* === TYPOGRAPHY DEFAULTS === */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    /* Add specific margins later or use utility classes */
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-text-link);
    text-decoration: none;
    transition: color var(--transition-duration-short) var(--transition-timing-function);
}

a:hover {
    color: var(--color-text-link-hover);
    text-decoration: underline;
}

/* === FORMS BASE === */
button,
input,
select,
textarea {
    font-family: inherit; /* Inherit font from body */
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    border: var(--border-width-thin) solid var(--color-border-primary);
    background-color: var(--color-secondary-bg); /* Slightly different default bg */
    border-radius: var(--radius-medium);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-tertiary);
    opacity: 1; /* Firefox */
}

button {
    cursor: pointer;
    border: none; /* Base buttons might not need border, components add it */
    background-color: transparent;
    padding: 0; /* Reset padding */
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
    border-color: var(--color-border-accent); /* Optional: change border too */
}

/* === UTILITIES (Optional) === */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.scrollable {
    overflow: auto;
    /* Optional: Add custom scrollbar styling here or in specific component CSS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--color-border-secondary) transparent; /* Firefox: thumb track */
}

.scrollable::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.scrollable::-webkit-scrollbar-track {
    background: transparent;
}
.scrollable::-webkit-scrollbar-thumb {
    background-color: var(--color-border-secondary);
    border-radius: var(--radius-full);
}
.scrollable::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-quaternary-bg);
}