/* Base CSS Styles */
@import 'animations.css';

:root {
    /* Base font sizes */
    font-size: 16px;
    line-height: 1.5;
}

/* Ensure all stylesheets are loaded before rendering critical elements */
html {
    visibility: visible;
    opacity: 1;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.no-fouc {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.1s ease-out;
}

html:not(.no-fouc) {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.1s ease-in;
}

/* Base element styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Basic typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
    line-height: 1.2;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Basic form elements */
input, button, textarea, select {
    font-family: inherit;
    font-size: 1rem;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Basic utility classes */
.hidden {
    display: none !important;
}

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

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

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

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

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    padding-bottom: 80px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--info-bg);
    color: var(--info-text);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 10000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -1rem);
} 