/*
 * Bootstrap-like Grid & Utility Classes
 * Custom lightweight replacement for Bootstrap
 */

/* ========================================
   Form Elements Reset
   ======================================== */
   input,
   textarea,
   select,
   button {
       font-family: inherit;
       font-size: inherit;
   }
   
   /* ========================================
      Typography - Headings
      ======================================== */
   h1, h2, h3, h4, h5, h6 {
       font-weight: 500;
       line-height: 1.2;
   }
   
   /* ========================================
      Buttons
      ======================================== */
   .btn {
       display: inline-block;
       font-family: inherit;
       font-weight: 400;
       line-height: 1.5;
       color: #212529;
       text-align: center;
       text-decoration: none;
       vertical-align: middle;
       cursor: pointer;
       user-select: none;
       background-color: transparent;
       border: 1px solid transparent;
       padding: 0.375rem 0.75rem;
       font-size: 1rem;
       border-radius: 0.375rem;
       transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
   }
   
   .btn:hover {
       color: #212529;
   }
   
   .btn:focus {
       outline: 0;
   }
   
   .btn:disabled,
   .btn.disabled {
       pointer-events: none;
       opacity: 0.65;
   }
   
   /* Button Sizes */
   .btn-lg {
       padding: 0.5rem 1rem;
       font-size: 1.25rem;
       border-radius: 0.5rem;
   }
   
   .btn-sm {
       padding: 0.25rem 0.5rem;
       font-size: 0.875rem;
       border-radius: 0.25rem;
   }
   
   /* Button Variants */
   .btn-primary {
       color: #fff;
       background-color: #0d6efd;
       border-color: #0d6efd;
   }
   
   .btn-primary:hover {
       color: #fff;
       background-color: #0b5ed7;
       border-color: #0a58ca;
   }
   
   .btn-secondary {
       color: #fff;
       background-color: #6c757d;
       border-color: #6c757d;
   }
   
   .btn-secondary:hover {
       color: #fff;
       background-color: #5c636a;
       border-color: #565e64;
   }
   
   .btn-success {
       color: #fff;
       background-color: #198754;
       border-color: #198754;
   }
   
   .btn-success:hover {
       color: #fff;
       background-color: #157347;
       border-color: #146c43;
   }
   
   .btn-danger {
       color: #fff;
       background-color: #dc3545;
       border-color: #dc3545;
   }
   
   .btn-danger:hover {
       color: #fff;
       background-color: #bb2d3b;
       border-color: #b02a37;
   }
   
   .btn-warning {
       color: #000;
       background-color: #ffc107;
       border-color: #ffc107;
   }
   
   .btn-warning:hover {
       color: #000;
       background-color: #ffca2c;
       border-color: #ffc720;
   }
   
   .btn-info {
       color: #000;
       background-color: #0dcaf0;
       border-color: #0dcaf0;
   }
   
   .btn-info:hover {
       color: #000;
       background-color: #31d2f2;
       border-color: #25cff2;
   }
   
   .btn-light {
       color: #000;
       background-color: #f8f9fa;
       border-color: #f8f9fa;
   }
   
   .btn-light:hover {
       color: #000;
       background-color: #d3d4d5;
       border-color: #c6c7c8;
   }
   
   .btn-dark {
       color: #fff;
       background-color: #212529;
       border-color: #212529;
   }
   
   .btn-dark:hover {
       color: #fff;
       background-color: #424649;
       border-color: #373b3e;
   }
   
   /* Outline Buttons */
   .btn-outline-primary {
       color: #0d6efd;
       border-color: #0d6efd;
   }
   
   .btn-outline-primary:hover {
       color: #fff;
       background-color: #0d6efd;
       border-color: #0d6efd;
   }
   
   .btn-outline-secondary {
       color: #6c757d;
       border-color: #6c757d;
   }
   
   .btn-outline-secondary:hover {
       color: #fff;
       background-color: #6c757d;
       border-color: #6c757d;
   }
   
   .btn-outline-success {
       color: #198754;
       border-color: #198754;
   }
   
   .btn-outline-success:hover {
       color: #fff;
       background-color: #198754;
       border-color: #198754;
   }
   
   .btn-outline-danger {
       color: #dc3545;
       border-color: #dc3545;
   }
   
   .btn-outline-danger:hover {
       color: #fff;
       background-color: #dc3545;
       border-color: #dc3545;
   }
   
   /* ========================================
      Container
      ======================================== */
   .container {
       max-width: 1470px;
       padding: 0 15px;
       margin-left: auto;
       margin-right: auto;
       width: 100%;
   }
   
   /* ========================================
      Grid System
      ======================================== */
   .row {
       display: flex;
       flex-wrap: wrap;
   }
   
   [class^="col-"],
   [class*=" col-"] {
       width: 100%;
       box-sizing: border-box;
   }
   
   /* SM - Small devices (576px and up) */
   @media (min-width: 576px) {
       .col-sm-1 { width: 8.3333%; }
       .col-sm-2 { width: 16.6666%; }
       .col-sm-3 { width: 25%; }
       .col-sm-4 { width: 33.3333%; }
       .col-sm-5 { width: 41.6666%; }
       .col-sm-6 { width: 50%; }
       .col-sm-7 { width: 58.3333%; }
       .col-sm-8 { width: 66.6666%; }
       .col-sm-9 { width: 75%; }
       .col-sm-10 { width: 83.3333%; }
       .col-sm-11 { width: 91.6666%; }
       .col-sm-12 { width: 100%; }
   }
   
   /* MD - Medium devices (768px and up) */
   @media (min-width: 768px) {
       .col-md-1 { width: 8.3333%; }
       .col-md-2 { width: 16.6666%; }
       .col-md-3 { width: 25%; }
       .col-md-4 { width: 33.3333%; }
       .col-md-5 { width: 41.6666%; }
       .col-md-6 { width: 50%; }
       .col-md-7 { width: 58.3333%; }
       .col-md-8 { width: 66.6666%; }
       .col-md-9 { width: 75%; }
       .col-md-10 { width: 83.3333%; }
       .col-md-11 { width: 91.6666%; }
       .col-md-12 { width: 100%; }
   }
   
   /* LG - Large devices (992px and up) */
   @media (min-width: 992px) {
       .col-lg-1 { width: 8.3333%; }
       .col-lg-2 { width: 16.6666%; }
       .col-lg-3 { width: 25%; }
       .col-lg-4 { width: 33.3333%; }
       .col-lg-5 { width: 41.6666%; }
       .col-lg-6 { width: 50%; }
       .col-lg-7 { width: 58.3333%; }
       .col-lg-8 { width: 66.6666%; }
       .col-lg-9 { width: 75%; }
       .col-lg-10 { width: 83.3333%; }
       .col-lg-11 { width: 91.6666%; }
       .col-lg-12 { width: 100%; }
   }
   
   /* XL - Extra large devices (1200px and up) */
   @media (min-width: 1200px) {
       .col-xl-1 { width: 8.3333%; }
       .col-xl-2 { width: 16.6666%; }
       .col-xl-3 { width: 25%; }
       .col-xl-4 { width: 33.3333%; }
       .col-xl-5 { width: 41.6666%; }
       .col-xl-6 { width: 50%; }
       .col-xl-7 { width: 58.3333%; }
       .col-xl-8 { width: 66.6666%; }
       .col-xl-9 { width: 75%; }
       .col-xl-10 { width: 83.3333%; }
       .col-xl-11 { width: 91.6666%; }
       .col-xl-12 { width: 100%; }
   }
   
   /* ========================================
      Display Utilities
      ======================================== */
   .d-none { display: none !important; }
   .d-block { display: block !important; }
   .d-inline { display: inline !important; }
   .d-inline-block { display: inline-block !important; }
   .d-flex { display: flex !important; }
   .d-inline-flex { display: inline-flex !important; }
   .d-grid { display: grid !important; }
   
   /* ========================================
      Flexbox Utilities
      ======================================== */
   
   /* Direction */
   .flex-row { flex-direction: row !important; }
   .flex-column { flex-direction: column !important; }
   .flex-row-reverse { flex-direction: row-reverse !important; }
   .flex-column-reverse { flex-direction: column-reverse !important; }
   
   /* Wrap */
   .flex-wrap { flex-wrap: wrap !important; }
   .flex-nowrap { flex-wrap: nowrap !important; }
   
   /* Justify Content */
   .justify-content-start { justify-content: flex-start !important; }
   .justify-content-end { justify-content: flex-end !important; }
   .justify-content-center { justify-content: center !important; }
   .justify-content-between { justify-content: space-between !important; }
   .justify-content-around { justify-content: space-around !important; }
   .justify-content-evenly { justify-content: space-evenly !important; }
   
   /* Align Items */
   .align-items-start { align-items: flex-start !important; }
   .align-items-end { align-items: flex-end !important; }
   .align-items-center { align-items: center !important; }
   .align-items-baseline { align-items: baseline !important; }
   .align-items-stretch { align-items: stretch !important; }
   
   /* Align Self */
   .align-self-start { align-self: flex-start !important; }
   .align-self-end { align-self: flex-end !important; }
   .align-self-center { align-self: center !important; }
   .align-self-baseline { align-self: baseline !important; }
   .align-self-stretch { align-self: stretch !important; }
   
   /* Gap */
   .gap-0 { gap: 0 !important; }
   .gap-1 { gap: 0.25rem !important; }
   .gap-2 { gap: 0.5rem !important; }
   .gap-3 { gap: 1rem !important; }
   .gap-4 { gap: 1.5rem !important; }
   .gap-5 { gap: 3rem !important; }
   
   .gx-0 { column-gap: 0 !important; }
   .gx-1 { column-gap: 0.25rem !important; }
   .gx-2 { column-gap: 0.5rem !important; }
   .gx-3 { column-gap: 1rem !important; }
   .gx-4 { column-gap: 1.5rem !important; }
   .gx-5 { column-gap: 3rem !important; }
   
   .gy-0 { row-gap: 0 !important; }
   .gy-1 { row-gap: 0.25rem !important; }
   .gy-2 { row-gap: 0.5rem !important; }
   .gy-3 { row-gap: 1rem !important; }
   .gy-4 { row-gap: 1.5rem !important; }
   .gy-5 { row-gap: 3rem !important; }
   
   /* ========================================
      Spacing - Margins
      ======================================== */
   .m-0 { margin: 0 !important; }
   .m-1 { margin: 0.25rem !important; }
   .m-2 { margin: 0.5rem !important; }
   .m-3 { margin: 1rem !important; }
   .m-4 { margin: 1.5rem !important; }
   .m-5 { margin: 3rem !important; }
   .m-auto { margin: auto !important; }
   
   .mt-0 { margin-top: 0 !important; }
   .mt-1 { margin-top: 0.25rem !important; }
   .mt-2 { margin-top: 0.5rem !important; }
   .mt-3 { margin-top: 1rem !important; }
   .mt-4 { margin-top: 1.5rem !important; }
   .mt-5 { margin-top: 3rem !important; }
   .mt-auto { margin-top: auto !important; }
   
   .mb-0 { margin-bottom: 0 !important; }
   .mb-1 { margin-bottom: 0.25rem !important; }
   .mb-2 { margin-bottom: 0.5rem !important; }
   .mb-3 { margin-bottom: 1rem !important; }
   .mb-4 { margin-bottom: 1.5rem !important; }
   .mb-5 { margin-bottom: 3rem !important; }
   .mb-auto { margin-bottom: auto !important; }
   
   .ms-0 { margin-left: 0 !important; }
   .ms-1 { margin-left: 0.25rem !important; }
   .ms-2 { margin-left: 0.5rem !important; }
   .ms-3 { margin-left: 1rem !important; }
   .ms-4 { margin-left: 1.5rem !important; }
   .ms-5 { margin-left: 3rem !important; }
   .ms-auto { margin-left: auto !important; }
   
   .me-0 { margin-right: 0 !important; }
   .me-1 { margin-right: 0.25rem !important; }
   .me-2 { margin-right: 0.5rem !important; }
   .me-3 { margin-right: 1rem !important; }
   .me-4 { margin-right: 1.5rem !important; }
   .me-5 { margin-right: 3rem !important; }
   .me-auto { margin-right: auto !important; }
   
   .mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
   .mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
   .mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
   .mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
   .mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
   .mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
   .mx-auto { margin-left: auto !important; margin-right: auto !important; }
   
   .my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
   .my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
   .my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
   .my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
   .my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
   .my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
   .my-auto { margin-top: auto !important; margin-bottom: auto !important; }
   
   /* ========================================
      Spacing - Padding
      ======================================== */
   .p-0 { padding: 0 !important; }
   .p-1 { padding: 0.25rem !important; }
   .p-2 { padding: 0.5rem !important; }
   .p-3 { padding: 1rem !important; }
   .p-4 { padding: 1.5rem !important; }
   .p-5 { padding: 3rem !important; }
   
   .pt-0 { padding-top: 0 !important; }
   .pt-1 { padding-top: 0.25rem !important; }
   .pt-2 { padding-top: 0.5rem !important; }
   .pt-3 { padding-top: 1rem !important; }
   .pt-4 { padding-top: 1.5rem !important; }
   .pt-5 { padding-top: 3rem !important; }
   
   .pb-0 { padding-bottom: 0 !important; }
   .pb-1 { padding-bottom: 0.25rem !important; }
   .pb-2 { padding-bottom: 0.5rem !important; }
   .pb-3 { padding-bottom: 1rem !important; }
   .pb-4 { padding-bottom: 1.5rem !important; }
   .pb-5 { padding-bottom: 3rem !important; }
   
   .ps-0 { padding-left: 0 !important; }
   .ps-1 { padding-left: 0.25rem !important; }
   .ps-2 { padding-left: 0.5rem !important; }
   .ps-3 { padding-left: 1rem !important; }
   .ps-4 { padding-left: 1.5rem !important; }
   .ps-5 { padding-left: 3rem !important; }
   
   .pe-0 { padding-right: 0 !important; }
   .pe-1 { padding-right: 0.25rem !important; }
   .pe-2 { padding-right: 0.5rem !important; }
   .pe-3 { padding-right: 1rem !important; }
   .pe-4 { padding-right: 1.5rem !important; }
   .pe-5 { padding-right: 3rem !important; }
   
   .px-0 { padding-left: 0 !important; padding-right: 0 !important; }
   .px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
   .px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
   .px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
   .px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
   .px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
   
   .py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
   .py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
   .py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
   .py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
   .py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
   .py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
   
   /* ========================================
      Text Utilities
      ======================================== */
   .text-start { text-align: left !important; }
   .text-end { text-align: right !important; }
   .text-center { text-align: center !important; }
   
   /* Text Colors */
   .text-white{ color: #fff !important; }
   .text-black{ color: #000 !important; }
   .text-muted { color: #6c757d !important; }
   .text-primary { color: #0d6efd !important; }
   .text-secondary { color: #6c757d !important; }
   .text-success { color: #198754 !important; }
   .text-danger { color: #dc3545 !important; }
   .text-warning { color: #ffc107 !important; }
   .text-info { color: #0dcaf0 !important; }
   
   /* Font Weight */
   .fw-light { font-weight: 300 !important; }
   .fw-normal { font-weight: 400 !important; }
   .fw-medium { font-weight: 500 !important; }
   .fw-semibold { font-weight: 600 !important; }
   .fw-bold { font-weight: 700 !important; }
   
   /* ========================================
      Sizing Utilities
      ======================================== */
   .w-25 { width: 25% !important; }
   .w-50 { width: 50% !important; }
   .w-75 { width: 75% !important; }
   .w-100 { width: 100% !important; }
   .w-auto { width: auto !important; }
   
   .h-25 { height: 25% !important; }
   .h-50 { height: 50% !important; }
   .h-75 { height: 75% !important; }
   .h-100 { height: 100% !important; }
   .h-auto { height: auto !important; }
   
   /* ========================================
      Position Utilities
      ======================================== */
   .position-static { position: static !important; }
   .position-relative { position: relative !important; }
   .position-absolute { position: absolute !important; }
   .position-fixed { position: fixed !important; }
   .position-sticky { position: sticky !important; }
   
   /* ========================================
      Visibility Utilities
      ======================================== */
   .visible { visibility: visible !important; }
   .invisible { visibility: hidden !important; }
   
   /* ========================================
      Overflow Utilities
      ======================================== */
   .overflow-auto { overflow: auto !important; }
   .overflow-hidden { overflow: hidden !important; }
   .overflow-visible { overflow: visible !important; }
   .overflow-scroll { overflow: scroll !important; }
   
   /* ========================================
      Border Radius Utilities
      ======================================== */
   .rounded { border-radius: 0.375rem !important; }
   .rounded-0 { border-radius: 0 !important; }
   .rounded-1 { border-radius: 0.25rem !important; }
   .rounded-2 { border-radius: 0.375rem !important; }
   .rounded-3 { border-radius: 0.5rem !important; }
   .rounded-circle { border-radius: 50% !important; }
   .rounded-pill { border-radius: 50rem !important; }
   