/* FIBU-APP - BASE STYLES */


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background: var(--color-background);
    overflow-x: hidden;
}


/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

h5 {
    font-size: var(--font-size-base);
}

h6 {
    font-size: var(--font-size-sm);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

small {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

strong {
    font-weight: var(--font-weight-semibold);
}


/* LISTS */

ul,
ol {
    list-style: none;
}


/* IMAGES */

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* BUTTONS RESET */

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}


/* INPUTS RESET */

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}


/* SCROLLBAR */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-text-muted);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
}


/* APP LAYOUT */

#app {
    display: flex;
    min-height: 100vh;
    position: relative;
}

#main-content {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
}

#page-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: var(--spacing-xl);
}


/* UTILITY CLASSES */

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

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

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

.font-bold {
    font-weight: var(--font-weight-bold);
}

.font-semibold {
    font-weight: var(--font-weight-semibold);
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-success {
    color: var(--color-success);
}

.text-warning {
    color: var(--color-warning);
}

.text-error {
    color: var(--color-error);
}

.hidden {
    display: none !important;
}


/* MOBILE HEADER */

.mobile-header {
    display: none;
    height: var(--mobile-header-height);
    background: var(--color-card-bg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0 var(--spacing-md);
    align-items: center;
    gap: var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.mobile-logo {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.mobile-spacer {
    flex: 1;
}