/* ======================
   Main Stylesheet
   ====================== */

/* Base Styles */
@import 'base.css';

/* Utilities */
@import 'utilities.css';

/* Theme */
@import 'theme.css';

/* Layout */
@import 'layout.css';

/* Components */
@import 'components.css';

/* Visualizations */
@import 'visualizations.css';

/* Print styles */
@import 'print.css';

/* Custom styles */
:root {
    /* Animation */
    --transition-base: all 0.2s ease-in-out;
    --transition-slow: all 0.4s ease-in-out;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-outline: 0 0 0 3px rgba(99, 102, 241, 0.5);
    --shadow-none: 0 0 #0000;
}

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

html {
    font-size: 16px;
    /* Safari/iOS */
    -webkit-text-size-adjust: 100%;
    /* Standard property */
    text-size-adjust: 100%;
    /* Disable tap highlight on touch devices */
    -webkit-tap-highlight-color: transparent;
    /* Font smoothing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: var(--transition-base);
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

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

/* Images */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

/* Lists */
ul, ol {
    padding-left: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Code */
code, kbd, pre, samp {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875em;
}

pre {
    display: block;
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: auto;
    font-size: 0.875em;
    line-height: 1.5;
    color: #e83e8c;
    background-color: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

code {
    font-size: 0.875em;
    color: #e83e8c;
    word-break: break-word;
    background-color: var(--color-bg-elevated);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
}

/* Tables */
table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--color-text);
    background-color: transparent;
    border-collapse: collapse;
}

th {
    text-align: -webkit-match-parent;
    text-align: match-parent;
    text-align: inherit;
}

thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--color-border);
}

tbody + tbody {
    border-top: 2px solid var(--color-border);
}

/* Forms */
label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    padding: 0;
    border-style: none;
}

input[type="radio"],
input[type="checkbox"] {
    box-sizing: border-box;
    padding: 0;
}

textarea {
    overflow: auto;
    resize: vertical;
}

[hidden] {
    display: none !important;
}

/* Print styles are now in print.css */
