/* EmeraldCSS v2 */

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

/* List Reset */
ul, ol { list-style: none; padding-left: 0; }

[type=button], [type=reset], [type=submit], button { -webkit-appearance: button; }
button, select { text-transform: none; }
button, input, optgroup, select, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button { border-radius: 0; }

/* Root Variables */
:root {
    /* Brand Color and Body BG */
    --brand-color: #0969da;
    --body-bg: #f1f5f9;
    --body-bg-rgb: 241, 245, 249;
    
    /* Colors */
    --color-primary: var(--brand-color);
    --color-secondary: #6f42c1;
    --color-success: #1a7f37;
    --color-danger: #cf222e;
    --color-warning: #9a6700;
    --color-info: #17a2b8;
    --color-muted: #616876;

    --color-azure: #4299e1;
    --color-dark: #1f2328;
    --color-light: #f6f8fa;
    --color-white: #ffffff;

    --color-border-1: #e1e4e8;
    --color-stickynote: #fef3c7;
    
    /* Default Blue Palette (Material Design) */
    --color-50: #e3f2fd;
    --color-100: #bbdefb;
    --color-200: #90caf9;
    --color-300: #64b5f6;
    --color-400: #42a5f5;
    --color-500: #2196f3;
    --color-600: #1e88e5;
    --color-700: #1976d2;
    --color-800: #1565c0;
    --color-900: #0d47a1;
    --color-A100: #82b1ff;
    --color-A200: #448aff;
    --color-A400: #2979ff;
    --color-A700: #2962ff;

    /* Typography */
    --font-sans: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji","Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;
    --font-family: var(--font-sans);
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    --font-size-h1: 1.5rem;
    --font-size-h2: 1.25rem;
    --font-size-h3: 1rem;
    --font-size-h4: 0.875rem;
    --font-size-h5: 0.75rem;
    --font-size-h6: 0.625rem;

    --navbar-brand-font-size: 1rem;
    --nav-link-font-size: 0.875rem;

    --body-bg: #f1f5f9;
    --body-bg-rgb: 241, 245, 249;
    --scrollbar-color: var(--brand-color);

    /* Fonts */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-bolder: 700;
    --font-weight-semibold: 500;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    --line-height-h1: 2rem;
    --line-height-h2: 1.75rem;
    --line-height-h3: 1.5rem;
    --line-height-h4: 1.25rem;
    --line-height-h5: 1rem;
    --line-height-h6: 1rem;

    /* Spacing */
    --rem-1: 0.25rem;
    --rem-almost2: 0.4375rem;
    --rem-2: 0.5rem;
    --rem-3: 0.75rem;
    --rem-4: 1rem;
    --rem-5: 1.25rem;
    --rem-6: 1.5rem;
    --rem-7: 1.75rem;
    --rem-8: 2rem;
    --rem-10: 2.5rem;
    --rem-12: 3rem;
    --rem-14: 3.5rem;
    --rem-16: 4rem;

    --content-padding: var(--rem-5);
    --btn-padding-y: var(--rem-almost2);
    --btn-padding-x: var(--rem-4);
    --btn-font-size: var(--font-size-sm);
    --btn-line-height: 1.4;
    --btn-icon-size: var(--rem-5);

    /* Border Radius */
    --border-radius: 4px;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-pill: 100rem;

    /* Percentages */
    --pct-1: 8.333333%;
    --pct-2: 16.666667%;
    --pct-3: 25%;
    --pct-4: 33.333333%;
    --pct-5: 41.666667%;
    --pct-6: 50%;
    --pct-7: 58.333333%;
    --pct-8: 66.666667%;
    --pct-9: 75%;
    --pct-10: 83.333333%;
    --pct-11: 91.666667%;
    --pct-12: 100%;
    
    /* Breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
  
    /* New */
    --breakpoint-2xl: 1400px;
    --breakpoint-3xl: 1536px; /* Tailwind 2xl & MUI xl */
    --breakpoint-2k: 2560px;  /* QHD/2K */
    --breakpoint-4k: 3840px;  /* UHD/4K */
}

/* Base Styles */
html {
    font-family: var(--font-family);
    line-height: var(--line-height-normal);
    color: var(--color-dark);
}

body {
    background-color: var(--body-bg);
    font-size: var(--font-size-base);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--content-padding);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p { margin-bottom: var(--rem-4); line-height: var(--line-height-normal); }
small, .small { font-size: var(--font-size-xs); color: var(--color-muted); }
strong, b { font-weight: var(--font-weight-bold); }
em, i { font-style: italic; }
a { text-decoration: none; }
.lh-1 { line-height: 1 !important; }

/* List Styling */
.card ul { padding-left: var(--rem-6); font-size: var(--font-size-h4); }
.card ol { padding-left: var(--rem-6); font-size: var(--font-size-h4); }
.card ul li { list-style: disc; margin-bottom: var(--rem-2); }
.card ol li { list-style: decimal; margin-bottom: var(--rem-2); }

/* Text Utilities */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.font-normal { font-weight: var(--font-weight-normal); }
.font-medium, .medium-bold { font-weight: var(--font-weight-medium); }
.font-semibold, .semibold, .semi-bold { font-weight: var(--font-weight-semibold); }
.font-bold, .bold { font-weight: var(--font-weight-bold); }

/* Color Utilities */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }
.text-azure { color: var(--color-azure); }
.text-muted { color: var(--color-muted); }
.text-dark { color: var(--color-dark); }
.text-white { color: var(--color-white); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-success { background-color: var(--color-success); }
.bg-danger { background-color: var(--color-danger); }
.bg-warning { background-color: var(--color-warning); }
.bg-info { background-color: var(--color-info); }
.bg-azure { background-color: var(--color-azure); }
.bg-muted { background-color: var(--color-muted); }
.bg-light { background-color: var(--color-light); }
.bg-white { background-color: var(--color-white); }

/* Generic Color Palette Utilities */
.bg-50 { background-color: var(--color-50); }
.bg-100 { background-color: var(--color-100); }
.bg-200 { background-color: var(--color-200); }
.bg-300 { background-color: var(--color-300); }
.bg-400 { background-color: var(--color-400); }
.bg-500 { background-color: var(--color-500); }
.bg-600 { background-color: var(--color-600); }
.bg-700 { background-color: var(--color-700); }
.bg-800 { background-color: var(--color-800); }
.bg-900 { background-color: var(--color-900); }
.bg-A100 { background-color: var(--color-A100); }
.bg-A200 { background-color: var(--color-A200); }
.bg-A400 { background-color: var(--color-A400); }
.bg-A700 { background-color: var(--color-A700); }

.text-50 { color: var(--color-50); }
.text-100 { color: var(--color-100); }
.text-200 { color: var(--color-200); }
.text-300 { color: var(--color-300); }
.text-400 { color: var(--color-400); }
.text-500 { color: var(--color-500); }
.text-600 { color: var(--color-600); }
.text-700 { color: var(--color-700); }
.text-800 { color: var(--color-800); }
.text-900 { color: var(--color-900); }
.text-A100 { color: var(--color-A100); }
.text-A200 { color: var(--color-A200); }
.text-A400 { color: var(--color-A400); }
.text-A700 { color: var(--color-A700); }


/* Container System */
.container {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 var(--rem-4);
}

.container-sm {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 var(--rem-4);
}

.container-md {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 0 var(--rem-4);
}

.container-lg {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--rem-4);
}

.container-xl {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--rem-2);
}

.content { padding: var(--content-padding) 0; }

/* 12-Column Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--rem-2));
    /* margin: 0 var(--rem-2); */
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    flex: 0 0 auto;
    padding: 0 var(--rem-2);
}

.col-1 { width: var(--pct-1); }
.col-2 { width: var(--pct-2); }
.col-3 { width: var(--pct-3); }
.col-4 { width: var(--pct-4); }
.col-5 { width: var(--pct-5); }
.col-6 { width: var(--pct-6); }
.col-7 { width: var(--pct-7); }
.col-8 { width: var(--pct-8); }
.col-9 { width: var(--pct-9); }
.col-10 { width: var(--pct-10); }
.col-11 { width: var(--pct-11); }
.col-12 { width: var(--pct-12); }

/* Floats */
.float-left { float: left }
.float-right { float: right }

/* Flexbox Utilities */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }
.visibility-visible, .visible { visibility: visible; }
.visibility-hidden, .hidden { visibility: hidden; }

@media (min-width: 1200px) {
    .d-xl-block { display: block !important; }
}

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-column-reverse { flex-direction: column-reverse; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }

.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }
.justify-content-evenly { justify-content: space-evenly; }

.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-baseline { align-items: baseline; }
.align-items-stretch { align-items: stretch; }

.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

/* Gap Utilities */
.gap-1 { gap: var(--rem-1); }
.gap-2 { gap: var(--rem-2); }
.gap-3 { gap: var(--rem-3); }
.gap-4 { gap: var(--rem-4); }
.gap-6 { gap: var(--rem-6); }
.gap-8 { gap: var(--rem-8); }

/* Margin Utilities */
.m-0 { margin: 0 !important; }
.m-1 { margin: var(--rem-1); }
.m-2 { margin: var(--rem-2); }
.m-3 { margin: var(--rem-3); }
.m-4 { margin: var(--rem-4); }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--rem-1); }
.mt-2 { margin-top: var(--rem-2); }
.mt-3 { margin-top: var(--rem-3); }
.mt-4 { margin-top: var(--rem-4); }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--rem-1); }
.mb-2 { margin-bottom: var(--rem-2); }
.mb-3 { margin-bottom: var(--rem-3); }
.mb-4 { margin-bottom: var(--rem-4); }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: var(--rem-1); margin-right: var(--rem-1); }
.mx-2 { margin-left: var(--rem-2); margin-right: var(--rem-2); }
.mx-3 { margin-left: var(--rem-3); margin-right: var(--rem-3); }
.mx-4 { margin-left: var(--rem-4); margin-right: var(--rem-4); }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: var(--rem-1); margin-bottom: var(--rem-1); }
.my-2 { margin-top: var(--rem-2); margin-bottom: var(--rem-2); }
.my-3 { margin-top: var(--rem-3); margin-bottom: var(--rem-3); }
.my-4 { margin-top: var(--rem-4); margin-bottom: var(--rem-4); }

.ml-0, .ms-0 { margin-left: 0 !important; }
.ml-1, .ms-1 { margin-left: var(--rem-1); }
.ml-2, .ms-2 { margin-left: var(--rem-2); }
.ml-3, .ms-3 { margin-left: var(--rem-3); }
.ml-4, .ms-4 { margin-left: var(--rem-4); }

.mr-0, .me-0 { margin-right: 0 !important; }
.mr-1, .me-1 { margin-right: var(--rem-1); }
.mr-2, .me-2 { margin-right: var(--rem-2); }
.mr-3, .me-3 { margin-right: var(--rem-3); }
.mr-4, .me-4 { margin-right: var(--rem-4); }

/* Padding Utilities */
.p-0 { padding: 0 !important; }
.p-1 { padding: var(--rem-1) !important; }
.p-2 { padding: var(--rem-2) !important; }
.p-3 { padding: var(--rem-3) !important; }
.p-4 { padding: var(--rem-4) !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: var(--rem-1); }
.pt-2 { padding-top: var(--rem-2); }
.pt-3 { padding-top: var(--rem-3); }
.pt-4 { padding-top: var(--rem-4); }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: var(--rem-1); }
.pb-2 { padding-bottom: var(--rem-2); }
.pb-3 { padding-bottom: var(--rem-3); }
.pb-4 { padding-bottom: var(--rem-4); }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: var(--rem-1); padding-right: var(--rem-1); }
.px-2 { padding-left: var(--rem-2); padding-right: var(--rem-2); }
.px-3 { padding-left: var(--rem-3); padding-right: var(--rem-3); }
.px-4 { padding-left: var(--rem-4); padding-right: var(--rem-4); }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: var(--rem-1); padding-bottom: var(--rem-1); }
.py-2 { padding-top: var(--rem-2); padding-bottom: var(--rem-2); }
.py-3 { padding-top: var(--rem-3); padding-bottom: var(--rem-3); }
.py-4 { padding-top: var(--rem-4); padding-bottom: var(--rem-4); }

.pl-0, .ps-0 { padding-left: 0 !important; }
.pl-1, .ps-1 { padding-left: var(--rem-1); }
.pl-2, .ps-2 { padding-left: var(--rem-2); }
.pl-3, .ps-3 { padding-left: var(--rem-3); }
.pl-4, .ps-4 { padding-left: var(--rem-4); }

.pr-0, .pe-0 { padding-right: 0 !important; }
.pr-1, .pe-1 { padding-right: var(--rem-1); }
.pr-2, .pe-2 { padding-right: var(--rem-2); }
.pr-3, .pe-3 { padding-right: var(--rem-3); }
.pr-4, .pe-4 { padding-right: var(--rem-4); }

/* Responsive Design */
@media (min-width: 640px) {
    .col-sm-1 { width: var(--pct-1); }
    .col-sm-2 { width: var(--pct-2); }
    .col-sm-3 { width: var(--pct-3); }
    .col-sm-4 { width: var(--pct-4); }
    .col-sm-5 { width: var(--pct-5); }
    .col-sm-6 { width: var(--pct-6); }
    .col-sm-7 { width: var(--pct-7); }
    .col-sm-8 { width: var(--pct-8); }
    .col-sm-9 { width: var(--pct-9); }
    .col-sm-10 { width: var(--pct-10); }
    .col-sm-11 { width: var(--pct-11); }
    .col-sm-12 { width: var(--pct-12); }
    
    .gap-sm-1 { gap: var(--rem-1); }
    .gap-sm-2 { gap: var(--rem-2); }
    .gap-sm-3 { gap: var(--rem-3); }
    .gap-sm-4 { gap: var(--rem-4); }
    .gap-sm-6 { gap: var(--rem-6); }
    .gap-sm-8 { gap: var(--rem-8); }
}

@media (min-width: 768px) {
    .col-md-1 { width: var(--pct-1); }
    .col-md-2 { width: var(--pct-2); }
    .col-md-3 { width: var(--pct-3); }
    .col-md-4 { width: var(--pct-4); }
    .col-md-5 { width: var(--pct-5); }
    .col-md-6 { width: var(--pct-6); }
    .col-md-7 { width: var(--pct-7); }
    .col-md-8 { width: var(--pct-8); }
    .col-md-9 { width: var(--pct-9); }
    .col-md-10 { width: var(--pct-10); }
    .col-md-11 { width: var(--pct-11); }
    .col-md-12 { width: var(--pct-12); }
    
    .gap-md-1 { gap: var(--rem-1); }
    .gap-md-2 { gap: var(--rem-2); }
    .gap-md-3 { gap: var(--rem-3); }
    .gap-md-4 { gap: var(--rem-4); }
    .gap-md-6 { gap: var(--rem-6); }
    .gap-md-8 { gap: var(--rem-8); }
}

@media (min-width: 1024px) {
    .col-lg-1 { width: var(--pct-1); }
    .col-lg-2 { width: var(--pct-2); }
    .col-lg-3 { width: var(--pct-3); }
    .col-lg-4 { width: var(--pct-4); }
    .col-lg-5 { width: var(--pct-5); }
    .col-lg-6 { width: var(--pct-6); }
    .col-lg-7 { width: var(--pct-7); }
    .col-lg-8 { width: var(--pct-8); }
    .col-lg-9 { width: var(--pct-9); }
    .col-lg-10 { width: var(--pct-10); }
    .col-lg-11 { width: var(--pct-11); }
    .col-lg-12 { width: var(--pct-12); }
    
    .gap-lg-1 { gap: var(--rem-1); }
    .gap-lg-2 { gap: var(--rem-2); }
    .gap-lg-3 { gap: var(--rem-3); }
    .gap-lg-4 { gap: var(--rem-4); }
    .gap-lg-6 { gap: var(--rem-6); }
    .gap-lg-8 { gap: var(--rem-8); }
}

/* Page Start */
.page, main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page Wrapper */
.page-wrapper, main > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* background-color: var(--color-light); */
}

/* Page Header (content header) */
.page-header, main > div > section:first-child {
    margin: var(--content-padding) 0 0 0;
    background-color: transparent;
}

/* Page Body (main content) */
.page-body, main > div > section:not(:first-child) {
    margin-top: var(--content-padding);
    margin-bottom: var(--content-padding);
    background-color: transparent;
}

/* Page Title */
.page-title, main h1 {
    font-size: var(--font-size-xl);
    margin: 0;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-h1);
    color: var(--color-dark);
}

.page-subtitle, main h2 {
    font-size: var(--font-size-sm);
    margin: 0;
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-h2);
    color: var(--color-muted);
}

/* Navigation - Tabler/Bootstrap Pattern */
main > header, .page > header, .navbar {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-1);
    padding: var(--rem-1) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
}

.navbar .container, header > .container, .navbar>.container-fluid,
.navbar>.container-lg, .navbar>.container-md, .navbar>.container-sm,
.navbar>.container-xl, .navbar>.container-xxl {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand, .navbar-brand > a, main > header > a, main > header > div > a {
    font-size: var(--navbar-brand-font-size);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .navbar-expand-md .navbar-toggler {
        display: none;
    }
}


@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}

.navbar-nav, header > nav {
    display: flex;
    justify-content: space-between;
    gap: var(--rem-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav ul, nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--rem-4);
}

.nav-item, nav > ul > li {
    margin: 0;
    display: flex;
    align-items: center;
}

.nav-link, nav > ul > li > a {
    font-size: var(--nav-link-font-size);
    color: var(--color-dark);
    text-decoration: none;
    padding: var(--rem-2) var(--rem-3);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    align-items: center;
    font-weight: 300;
}

.nav-link:hover, nav > ul > li > a:hover {
    color: var(--color-primary);
}

.avatar {
    position: relative;
    width: var(--rem-8);
    height: var(--rem-8);
}

/* Dropdown Navigation */
ul.dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: var(--rem-2);
    gap: var(--rem-1);
}

.dropdown-menu {
    display: none;
}

.nav-tabs .nav-item {
    margin-bottom: 0 !important;
}

.nav-tabs .nav-link {
    border: 1px solid #dee2e6;
    border-bottom: 0px !important;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Title */
.title {
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: var(--rem-2);
    margin-bottom: var(--content-padding);
}

/* Cards */
.card {
    border: 1px solid var(--color-border-1);
    border-radius: var(--border-radius);
    background-color: var(--color-white);
    /* padding: var(--rem-6); */
    margin-bottom: var(--rem-4);
}

.card .card-body { padding: var(--rem-3); }
.card .card { padding: var(--rem-3) !important; }

/* Sticky Note */
.sticky-note {
    background-color: var(--color-stickynote);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23d97706' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm0 14A6 6 0 1 1 8 2a6 6 0 0 1 0 12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: var(--rem-4) var(--rem-4);
    padding: var(--content-padding);
    margin: var(--rem-2) 0;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: rotate(-3deg);
    max-width: 300px;
}

.sticky-note > strong, .sticky-note b { margin-right: var(--rem-3); }

/* 
.sticky-note::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 var(--rem-3) var(--rem-3);
    border-color: transparent transparent #d97706 transparent;
    transform: rotate(45deg);
    transform-origin: bottom left;
} */

/* Mobile Responsive */
@media (max-width: 768px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl {
        padding: 0 var(--rem-2);
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    .row {
        margin: 0 calc(-1 * var(--rem-1));
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        padding: 0 var(--rem-1);
    }
}

/* Scrollbar Styles */
* {
    scrollbar-color: rgba(var(--scrollbar-color,var(--body-color-rgb)),.16) transparent
}

::-webkit-scrollbar {
    width: 1rem;
    height: 1rem;
    -webkit-transition: background .3s;
    transition: background .3s
}

@media (prefers-reduced-motion:reduce) {
    ::-webkit-scrollbar {
        -webkit-transition: none;
        transition: none
    }
}

::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    border: 5px solid transparent;
    box-shadow: inset 0 0 0 1rem rgba(var(--scrollbar-color,var(--body-color-rgb)),.16)
}

::-webkit-scrollbar-track {
    background: 0 0
}

:hover::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 0 1rem rgba(var(--scrollbar-color,var(--body-color-rgb)),.32)
}

::-webkit-scrollbar-corner {
    background: 0 0
}

/* Additional Utility Classes */
.w-auto { width: auto; }
.w-100 { width: 100%; }

/* Code styling */
.code, code {
    font-size: 14px;
    line-height: 1;
    white-space: pre-wrap;
    font-family: var(--font-family-mono);
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    font-weight: var(--font-weight-medium);
    line-height: var(--btn-line-height);
    color: var(--color-dark);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-size: var(--btn-font-size);
    border-radius: var(--border-radius);
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    text-decoration: none;
}

.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary), 0.25);
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.65;
}

.btn-primary {
    color: var(--color-white);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    color: var(--color-white);
    background-color: var(--color-700);
    border-color: var(--color-700);
}

.btn-outline-light {
    color: var(--color-white);
    border-color: var(--color-white);
    background-color: transparent;
}

.btn-outline-light:hover {
    color: var(--color-dark);
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.btn-sm {
    padding: var(--rem-1) var(--rem-3);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.btn .icon {
    width: var(--btn-icon-size);
    height: var(--btn-icon-size);
    min-width: var(--btn-icon-size);
    margin: 0 calc(var(--btn-padding-x) / 2) 0 calc(var(--btn-padding-x) / -4);
    vertical-align: bottom;
    color: inherit;
}

/* Form Components */
.form-control {
    display: block;
    width: auto;
    padding: var(--rem-2) var(--rem-3);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--color-dark);
    background-color: var(--color-white);
    background-clip: padding-box;
    border: 1px solid var(--color-border-1);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--color-dark);
    background-color: var(--color-white);
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary), 0.25);
}

.form-control::placeholder {
    color: var(--color-muted);
    opacity: 1;
}

.form-control:disabled {
    background-color: var(--color-light);
    opacity: 1;
}

.form-select {
    display: block;
    width: auto;
    padding: var(--rem-2) var(--rem-3);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
    color: var(--color-dark);
    background-color: var(--color-white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right var(--rem-3) center;
    background-size: 16px 12px;
    border: 1px solid var(--color-border-1);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.form-select:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary), 0.25);
}

.form-select:disabled {
    background-color: var(--color-light);
    opacity: 1;
}

.form-label {
    margin-bottom: var(--rem-1);
    font-weight: var(--font-weight-medium);
    color: var(--color-dark);
}

/* Modal Components */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: var(--rem-4);
    pointer-events: none;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: var(--color-white);
    background-clip: padding-box;
    border: 1px solid var(--color-border-1);
    border-radius: var(--border-radius);
    outline: 0;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: var(--rem-4);
    border-bottom: 1px solid var(--color-border-1);
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--rem-4);
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: var(--rem-4);
    border-top: 1px solid var(--color-border-1);
    gap: var(--rem-2);
}

.btn-close {
    display: inline-block;
    box-sizing: content-box;
    width: 0.5rem;
    height: 0.5rem;
    /* padding: 0.25em 0.25em; */
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    /* background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath d='m.5.5 15 15M15.5.5l-15 15'/%3e%3c/svg%3e") center/1em auto no-repeat; */
    border: 0;
    opacity: 0.3;
    cursor: pointer;
}

.btn-close:hover {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
}

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

/* Background Utilities */
.bg-dark { background-color: var(--color-dark); }

/* Link Utilities */
.footer-link {
    color: var(--color-white);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--color-white);
    text-decoration: none;
}

.underline-dashed:hover {
    text-decoration: underline;
    text-decoration-style: dashed;
}
