@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@400;500;600&family=DM+Mono:wght@400;500&display=swap');
@import 'variables.css';

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-weight: var(--weight-black);
    color: var(--color-text-primary);
    margin-top: var(--space-2);
    margin-bottom: var(--space-4);
}

h2 {
    font-weight: var(--weight-black);
    color: var(--color-text-primary);
    margin-top: var(--space-3);
    margin-bottom: var(--space-4);
}

a, .hyperlink {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* User stuff */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.sidebar-user:hover { background: var(--color-sidebar-alt); }

.user-avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: #fff;
}

.user-info { flex: 1; min-width: 0; }

.user-name {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-inverse);
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.toast-container {
    position:fixed;
    bottom:24px;
    right:24px;
    display:flex;
    flex-direction:column;
    gap:8px;
    z-index: var(--z-toast-container);
    box-shadow: var(--shadow-accent);
}

.logout-link {
    color: var(--color-sidebar);
    transition: color 0.3s ease;
}

.logout-link:hover {
    color: var(--color-logout);
}

.logout-link svg {
    fill: currentColor;
}

.accent-color-text {
    color: var(--color-accent);
    font-weight: var(--weight-black);
}

.input-disabled {
    background: var(--color-bg); color: var(--color-text-muted);
    cursor: not-allowed; font-style: italic;
}

.text-align-center { text-align: center; }

.full-width { width: 100%; }

.hidden { display: none; }

.no-margin { margin: 0 !important; }
.no-padding { padding: 0 !important; }
