/* =====================================================
   BOOTSTRAP UTILITY SHIMS
   Allows Bootstrap class names to work without Bootstrap
   ===================================================== */

/* Grid */
.row { display:flex; flex-wrap:wrap; gap:16px; }
.col-md-3 { flex:1 1 200px; min-width:0; }
.col-md-4 { flex:1 1 250px; min-width:0; }
.col-md-6 { flex:1 1 280px; min-width:0; }
.col-md-8 { flex:2 1 380px; min-width:0; }
.col-md-12, .col-12 { width:100%; }
.col-5 { flex:1 1 140px; }

/* Flex */
.d-flex { display:flex; }
.d-block { display:block; }
.d-none { display:none; }
.flex-wrap { flex-wrap:wrap; }
.align-items-center { align-items:center; }
.justify-content-center { justify-content:center; }
.justify-content-between { justify-content:space-between; }
.justify-content-end { justify-content:flex-end; }
.flex-column { flex-direction:column; }
.gap-1 { gap:4px; } .gap-2 { gap:8px; } .gap-3 { gap:16px; } .gap-4 { gap:24px; }

/* Margin */
.m-0 { margin:0; }
.mb-0 { margin-bottom:0; } .mb-1 { margin-bottom:4px; } .mb-2 { margin-bottom:8px; }
.mb-3 { margin-bottom:16px; } .mb-4 { margin-bottom:24px; } .mb-5 { margin-bottom:40px; }
.mt-0 { margin-top:0; } .mt-1 { margin-top:4px; } .mt-2 { margin-top:8px; }
.mt-3 { margin-top:16px; } .mt-4 { margin-top:24px; } .mt-5 { margin-top:40px; }
.me-1 { margin-right:4px; } .me-2 { margin-right:8px; } .mr-2 { margin-right:8px; }
.ms-auto { margin-left:auto; } .mx-auto { margin-left:auto; margin-right:auto; }

/* Padding */
.p-0 { padding:0; } .p-2 { padding:8px; } .p-3 { padding:16px; }
.p-4 { padding:24px; } .p-5 { padding:40px; }
.px-3 { padding-left:16px; padding-right:16px; }
.py-3 { padding-top:16px; padding-bottom:16px; }
.py-4 { padding-top:24px; padding-bottom:24px; }
.py-5 { padding-top:48px; padding-bottom:48px; }
.pb-2 { padding-bottom:8px; } .pb-3 { padding-bottom:16px; }

/* Typography */
.text-center { text-align:center; } .text-left { text-align:left; } .text-right { text-align:right; }
.text-muted { color:#8888aa; } .text-dark { color:#1a1a2e; } .text-white { color:#fff; }
.text-primary { color:#1a237e; } .text-success { color:#2e7d32; } .text-danger { color:#e53935; }
.text-warning { color:#fb8c00; } .text-info { color:#0288d1; } .text-purple { color:#7b1fa2; }
.text-secondary { color:#4a4a6a; }
.fw-bold { font-weight:700; } .fw-semibold { font-weight:600; }
.small { font-size:.85rem; } .fs-5 { font-size:1.1rem; } .lead { font-size:1.05rem; }
.display-4 { font-size:2rem; font-weight:800; }
.text-decoration-line-through { text-decoration:line-through; }
.text-decoration-none { text-decoration:none; }

/* Size */
.w-100 { width:100%; } .w-50 { width:50%; } .h-100 { height:100%; }

/* Border */
.border { border:1px solid #e0e4f0; } .border-bottom { border-bottom:1px solid #e0e4f0; }
.rounded { border-radius:8px; } .border-left-primary { border-left:4px solid #1a237e; }

/* Shadow */
.shadow-sm { box-shadow:0 2px 8px rgba(26,35,126,.06); }
.shadow-lg { box-shadow:0 8px 40px rgba(26,35,126,.15); }

/* Background */
.bg-light { background:#f0f2f8; } .bg-white { background:#fff; }
.bg-primary { background:#1a237e; color:#fff; } .bg-success { background:#2e7d32; color:#fff; }
.bg-danger { background:#e53935; color:#fff; } .bg-warning { background:#fb8c00; color:#fff; }

/* Badges */
.badge-success { background:#e8f5e9; color:#2e7d32; border-radius:100px; padding:3px 10px; font-size:.75rem; font-weight:600; display:inline-block; }
.badge-warning { background:#fff8e1; color:#e65100; border-radius:100px; padding:3px 10px; font-size:.75rem; font-weight:600; display:inline-block; }
.badge-danger  { background:#fce4ec; color:#c62828; border-radius:100px; padding:3px 10px; font-size:.75rem; font-weight:600; display:inline-block; }
.badge-info    { background:#e3f2fd; color:#1565c0; border-radius:100px; padding:3px 10px; font-size:.75rem; font-weight:600; display:inline-block; }
.badge-primary { background:rgba(26,35,126,.1); color:#1a237e; border-radius:100px; padding:3px 10px; font-size:.75rem; font-weight:600; display:inline-block; }

/* Alerts */
.alert { padding:14px 18px; border-radius:8px; margin-bottom:16px; font-size:.9rem; display:flex; align-items:center; gap:10px; }
.alert-success { background:#e8f5e9; color:#2e7d32; border:1px solid #a5d6a7; }
.alert-danger  { background:#fce4ec; color:#c62828; border:1px solid #ef9a9a; }
.alert-warning { background:#fff8e1; color:#e65100; border:1px solid #ffcc80; }
.alert-info    { background:#e3f2fd; color:#1565c0; border:1px solid #90caf9; }

/* Tables */
.table { width:100%; border-collapse:collapse; }
.table th { padding:12px 14px; background:#f0f2f8; color:#8888aa; font-weight:600; font-size:.85rem; border-bottom:2px solid #e0e4f0; text-align:left; }
.table td { padding:12px 14px; border-bottom:1px solid #e0e4f0; font-size:.875rem; color:#1a1a2e; }
.table-bordered { border:1px solid #e0e4f0; }
.table-bordered th, .table-bordered td { border:1px solid #e0e4f0; }
.table-striped tbody tr:nth-child(even) td { background:#f8f9ff; }
.table-hover tbody tr:hover td { background:rgba(26,35,126,.03); }
.table-responsive { overflow-x:auto; }
.text-center th, .text-center td { text-align:center; }

/* Forms */
.form-group { margin-bottom:16px; }
.form-label { display:block; font-size:.875rem; font-weight:600; color:#1a1a2e; margin-bottom:6px; }
.form-control { width:100%; padding:10px 14px; border:2px solid #e0e4f0; border-radius:8px; font-size:.9rem; color:#1a1a2e; background:#fff; transition:border-color .2s; outline:none; font-family:inherit; }
.form-control:focus { border-color:#1a237e; box-shadow:0 0 0 3px rgba(26,35,126,.08); }
.form-check { display:flex; align-items:center; gap:8px; }
.input-group { display:flex; }
.input-group .form-control { border-radius:8px 0 0 8px; flex:1; }
.input-group-text { background:#f0f2f8; border:2px solid #e0e4f0; border-left:none; padding:10px 14px; font-size:.9rem; color:#8888aa; border-radius:0 8px 8px 0; }

/* Buttons */
.btn-outline-primary { background:transparent; border:2px solid #1a237e; color:#1a237e; padding:9px 20px; border-radius:100px; font-weight:600; font-size:.875rem; cursor:pointer; transition:.2s; display:inline-flex; align-items:center; gap:6px; }
.btn-outline-primary:hover { background:#1a237e; color:#fff; }
.btn-outline-secondary { background:transparent; border:2px solid #e0e4f0; color:#4a4a6a; padding:9px 14px; border-radius:100px; cursor:pointer; font-size:.875rem; }

/* List */
.list-unstyled { list-style:none; padding:0; }

/* Position */
.position-relative { position:relative; } .position-absolute { position:absolute; }

/* Pagination */
.pagination { display:flex; gap:6px; list-style:none; justify-content:center; margin-top:24px; }
.pagination .page-item .page-link { padding:8px 14px; border:1px solid #e0e4f0; border-radius:8px; color:#1a237e; font-size:.875rem; text-decoration:none; transition:.2s; display:block; }
.pagination .page-item.active .page-link { background:#1a237e; color:#fff; border-color:#1a237e; }
.pagination .page-item.disabled .page-link { color:#8888aa; pointer-events:none; }
.pagination .page-item .page-link:hover { background:#f0f2f8; }

/* Misc */
.overflow-hidden { overflow:hidden; } .cursor-pointer { cursor:pointer; }
.grid { display:grid; } .grid-2 { grid-template-columns:1fr 1fr; }

@media(max-width:768px) {
  .col-md-3, .col-md-4, .col-md-6, .col-md-8 { flex:1 1 100%; }
  .grid-2 { grid-template-columns:1fr; }
}
