/* ========================================
   CSS DESIGN SYSTEM - GLOBAL VARIABLES
   ======================================== */

:root {
    /* ===== Color Palette ===== */
    /* Primary Brand Colors */
    --color-primary: #836480; /* Main purple/mauve */
    --color-primary-light: #a688a3; /* Lighter shade */
    --color-primary-dark: #755372; /* Darker shade */
    --color-primary-rgb: 131, 100, 128; /* RGB for alpha */
    /* Secondary Colors */
    --color-secondary: #CE8268;
    /* Semantic Colors */
    --color-success: #28a745;
    --color-success-light: #48c774;
    --color-success-dark: #218838;
    --color-danger: #dc3545;
    --color-danger-light: #e4606d;
    --color-danger-dark: #bd2130;
    --color-warning: #ffc107;
    --color-warning-light: #ffcd39;
    --color-warning-dark: #d39e00;
    --color-info: #17a2b8;
    --color-info-light: #3fc3d9;
    --color-info-dark: #138496;
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f1f3f5;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    /* Text Colors */
    --color-text-primary: #212529;
    --color-text-secondary: #6c757d;
    --color-text-muted: #adb5bd;
    --color-text-light: #ffffff;
    /* Background Colors */
    --color-bg-body: #ffffff;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #343a40;
    --color-bg-overlay: rgba(0, 0, 0, 0.5);
    /* Border Colors */
    --color-border: #dee2e6;
    --color-border-light: #e9ecef;
    --color-border-dark: #ced4da;
    /* ===== Typography ===== */
    /* Font Families */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    /* Font Sizes */
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-2xl: 1.5rem; /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem; /* 36px */
    --font-size-5xl: 3rem; /* 48px */
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    /* ===== Spacing ===== */
    --spacing-0: 0;
    --spacing-1: 0.25rem; /* 4px */
    --spacing-2: 0.5rem; /* 8px */
    --spacing-3: 0.75rem; /* 12px */
    --spacing-4: 1rem; /* 16px */
    --spacing-5: 1.25rem; /* 20px */
    --spacing-6: 1.5rem; /* 24px */
    --spacing-8: 2rem; /* 32px */
    --spacing-10: 2.5rem; /* 40px */
    --spacing-12: 3rem; /* 48px */
    --spacing-16: 4rem; /* 64px */
    --spacing-20: 5rem; /* 80px */
    /* ===== Border Radius ===== */
    --radius-none: 0;
    --radius-sm: 0.125rem; /* 2px */
    --radius-base: 0.25rem; /* 4px */
    --radius-md: 0.375rem; /* 6px */
    --radius-lg: 0.5rem; /* 8px */
    --radius-xl: 0.75rem; /* 12px */
    --radius-2xl: 1rem; /* 16px */
    --radius-full: 9999px;
    /* ===== Shadows ===== */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-focus: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-primary);
    /* ===== Transitions ===== */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    /* ===== Z-Index ===== */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    /* ===== Component-Specific Variables ===== */
    /* Buttons */
    --btn-padding-y: 0.375rem;
    --btn-padding-x: 0.75rem;
    --btn-font-size: var(--font-size-base);
    --btn-border-radius: var(--radius-base);
    /* Forms */
    --input-padding-y: 0.375rem;
    --input-padding-x: 0.75rem;
    --input-border-color: var(--color-border);
    --input-border-radius: var(--radius-base);
    --input-focus-border-color: var(--color-primary);
    /* Cards */
    --card-border-radius: var(--radius-lg);
    --card-padding: var(--spacing-4);
    --card-shadow: var(--shadow-sm);
    /* Tables */
    --table-cell-padding-y: var(--spacing-3);
    --table-cell-padding-x: var(--spacing-4);
    --table-border-color: var(--color-border-light);
    /* Badges */
    --badge-padding-y: 0.125rem;
    --badge-padding-x: 0.5rem;
    --badge-font-size: var(--font-size-xs);
    --badge-border-radius: var(--radius-full);
    /* Modals */
    --modal-border-radius: var(--radius-lg);
    --modal-padding: var(--spacing-4);
}

/* ========================================
   BASE STYLES
   ======================================== */

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal)
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
}

/* ========================================
   FOCUS STATES
   ======================================== */

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: var(--shadow-focus);
}

/* ========================================
   FORM CONTROLS
   ======================================== */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color, var(--color-text-secondary));
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text Colors */
.text-primary-custom {
  color: var(--color-primary) !important;
}

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

/* Background Colors */
.bg-primary-custom {
  background-color: var(--color-primary) !important;
}

.bg-primary-light {
  background-color: rgba(var(--color-primary-rgb), 0.125) !important;
}

/* Borders */
.border-primary-custom {
  border-color: var(--color-primary) !important;
}

/* Shadows */
.shadow-xs {
  box-shadow: var(--shadow-xs) !important;
}

.shadow-sm-custom {
  box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg-custom {
  box-shadow: var(--shadow-lg) !important;
}


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

.btn-secondary {
    background: var(--color-secondary);
    border: 0;
}

.cancel-btn {
    background-color: transparent;
    border: 1px solid rgb(222, 226, 230);
    transition: opacity 0.15s ease-in-out;
    color: rgb(73, 80, 87);
}

.cancel-btn:hover {
    opacity: 0.9;
    border: 1px solid rgb(222, 226, 230);
}
