/**
 * Stitch Bootstrap Overrides
 * Nadaje Bootstrapowym klasom (.card, .btn, .badge, .col-*, .row, etc.)
 * wygląd zgodny z designem Stitch (squareness, solid colors, minimal shadows).
 * DOŁĄCZONY NA KOŃCU main.css — działa jako override wszystkich poprzednich reguł.
 */

/* ==================== */
/* CARD — Stitch Pattern  */
/* ==================== */

.card {
    background: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #F4F4F5;
}

.card-header {
    background: #202024 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 0 0 0 !important;
    color: #F4F4F5;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body {
    background: transparent !important;
    color: #F4F4F5;
    padding: 1rem;
}

.card-footer {
    background: #202024 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 0 0 0 !important;
}

.card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-text {
    color: #a1a1aa;
}

/* ==================== */
/* BUTTONS              */
/* ==================== */

.btn {
    border-radius: 0 !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-danger {
    background-color: #9F1239 !important;
    border-color: #9F1239 !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-danger:hover {
    background-color: #BE123C !important;
    border-color: #BE123C !important;
    box-shadow: 0 0 8px rgba(159, 18, 57, 0.2) !important;
}

.btn-outline-light,
.btn-outline-secondary {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #F4F4F5 !important;
}

.btn-outline-light:hover,
.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.btn-secondary {
    background-color: #292929 !important;
    border-color: #292929 !important;
    color: #F4F4F5 !important;
}

.btn-secondary:hover {
    background-color: #3a3a3a !important;
    border-color: #3a3a3a !important;
}

.btn-warning {
    background-color: #B51220 !important;
    border-color: #B51220 !important;
    color: #fff !important;
}

.btn-warning:hover {
    background-color: #9F1239 !important;
    border-color: #9F1239 !important;
}

.btn-success {
    background-color: #166534 !important;
    border-color: #166534 !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
}

.btn-info {
    background-color: #1e40af !important;
    border-color: #1e40af !important;
    color: #fff !important;
}

.btn-info:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.btn-ghost {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #F4F4F5 !important;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-sm {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.75rem !important;
}

.btn-lg {
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==================== */
/* BADGES               */
/* ==================== */

.badge {
    border-radius: 0 !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.5rem;
    text-transform: uppercase;
}

.badge-primary {
    background-color: #9F1239 !important;
    color: #fff !important;
}

.badge-secondary {
    background-color: #292929 !important;
    color: #a1a1aa !important;
}

.badge-danger,
.badge-error {
    background-color: #dc2626 !important;
    color: #fff !important;
}

.badge-success {
    background-color: #166534 !important;
    color: #fff !important;
}

.badge-warning {
    background-color: #B51220 !important;
    color: #fff !important;
}

.badge-info {
    background-color: #1e40af !important;
    color: #fff !important;
}

.badge-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #F4F4F5 !important;
}

.badge-dark {
    background-color: #292929 !important;
    color: #a1a1aa !important;
}

/* ==================== */
/* ALERTS               */
/* ==================== */

.alert {
    border-radius: 0 !important;
    border: 1px solid;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.alert-danger {
    background-color: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    color: #fca5a5 !important;
}

.alert-warning {
    background-color: rgba(181, 18, 32, 0.1) !important;
    border-color: rgba(181, 18, 32, 0.3) !important;
    color: #fca5a5 !important;
}

.alert-success {
    background-color: rgba(22, 101, 52, 0.1) !important;
    border-color: rgba(22, 101, 52, 0.3) !important;
    color: #86efac !important;
}

.alert-info {
    background-color: rgba(30, 64, 175, 0.1) !important;
    border-color: rgba(30, 64, 175, 0.3) !important;
    color: #93c5fd !important;
}

.alert-secondary {
    background-color: rgba(41, 41, 48, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #a1a1aa !important;
}

/* ==================== */
/* TABLES               */
/* ==================== */

.table {
    border-collapse: collapse;
    color: #F4F4F5;
    font-family: 'Barlow Condensed', sans-serif;
    width: 100%;
}

.table-dark {
    background-color: #18181B !important;
    color: #F4F4F5 !important;
}

.table-dark th,
.table-dark td {
    border-color: rgba(255, 255, 255, 0.08) !important;
    padding: 0.6rem 0.85rem;
}

.table-dark thead th {
    background-color: #202024 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #D4A853 !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.table-dark tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

/* ==================== */
/* FORMS                */
/* ==================== */

.form-control,
.form-select {
    background-color: #141418 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    color: #F4F4F5 !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    padding: 0.55rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
    background-color: #141418 !important;
    border-color: #9F1239 !important;
    box-shadow: 0 0 0 2px rgba(159, 18, 57, 0.15) !important;
    color: #F4F4F5 !important;
    outline: none;
}

.form-control::placeholder {
    color: #52525b !important;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #0f0f11 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #52525b !important;
    opacity: 0.7;
}

label {
    color: #a1a1aa;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==================== */
/* MODALS               */
/* ==================== */

.modal-content {
    background-color: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #F4F4F5;
}

.modal-header {
    background-color: #202024 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 0 0 0 !important;
    padding: 1rem 1.25rem;
}

.modal-header .close {
    color: #a1a1aa;
    opacity: 1;
}

.modal-header .close:hover {
    color: #fff;
}

.modal-title {
    color: #D4A853;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-body {
    background-color: #18181B !important;
    color: #F4F4F5;
    padding: 1.25rem;
}

.modal-footer {
    background-color: #202024 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 0 0 0 !important;
    padding: 0.85rem 1.25rem;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75);
}

/* ==================== */
/* NAV TABS             */
/* ==================== */

.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #a1a1aa;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.6rem 1rem;
    text-transform: uppercase;
    transition: color 0.15s, border-color 0.15s;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: rgba(159, 18, 57, 0.5);
    color: #F4F4F5;
}

.nav-tabs .nav-link.active {
    background: transparent;
    border-bottom-color: #9F1239;
    color: #D4A853;
}

/* ==================== */
/* LIST GROUP           */
/* ==================== */

.list-group {
    border-radius: 0;
}

.list-group-item {
    background-color: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #F4F4F5;
    font-family: 'Barlow Condensed', sans-serif;
    padding: 0.65rem 1rem;
}

.list-group-item:first-child {
    border-radius: 0 0 0 0 !important;
}

.list-group-item:last-child {
    border-radius: 0 0 0 0 !important;
}

.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.list-group-item.active {
    background-color: rgba(159, 18, 57, 0.15) !important;
    border-color: rgba(159, 18, 57, 0.3) !important;
    color: #D4A853 !important;
}

/* ==================== */
/* PROGRESS             */
/* ==================== */

.progress {
    background-color: #0f0f11 !important;
    border: none;
    border-radius: 0 !important;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    background-color: #9F1239 !important;
    border-radius: 0 !important;
    color: #fff;
    font-size: 0.7rem;
    line-height: 8px;
    text-align: center;
}

.progress-bar.bg-success { background-color: #166534 !important; }
.progress-bar.bg-warning { background-color: #B51220 !important; }
.progress-bar.bg-info { background-color: #1e40af !important; }
.progress-bar.bg-secondary { background-color: #292929 !important; }

/* ==================== */
/* BREADCRUMB           */
/* ==================== */

.breadcrumb {
    background: transparent;
    border-radius: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #52525b;
}

.breadcrumb-item a {
    color: #a1a1aa;
}

.breadcrumb-item.active {
    color: #D4A853;
}

/* ==================== */
/* JUMBOTRON            */
/* ==================== */

.jumbotron {
    background-color: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    color: #F4F4F5;
    padding: 2rem;
}

.jumbotron h1,
.jumbotron h2,
.jumbotron h3,
.jumbotron h4,
.jumbotron h5,
.jumbotron h6 {
    color: #D4A853;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.jumbotron p {
    color: #a1a1aa;
}

/* ==================== */
/* DROPDOWNS            */
/* ==================== */

.dropdown-menu {
    background-color: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0.35rem 0;
}

.dropdown-item {
    color: #F4F4F5;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.45rem 1rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(159, 18, 57, 0.12) !important;
    color: #fff;
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-toggle::after {
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    vertical-align: 0.1em;
}

/* ==================== */
/* TOOLTIPS             */
/* ==================== */

.tooltip {
    font-family: 'Barlow Condensed', sans-serif;
}

.tooltip-inner {
    background-color: #202024;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: #F4F4F5;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.75rem;
}

/* ==================== */
/* PAGINATION           */
/* ==================== */

.page-link {
    background-color: #18181B !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0 !important;
    color: #a1a1aa;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
}

.page-link:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #F4F4F5;
}

.page-item.active .page-link {
    background-color: #9F1239 !important;
    border-color: #9F1239 !important;
    color: #fff !important;
}

.page-item.disabled .page-link {
    background-color: #141418 !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #52525b !important;
}

/* ==================== */
/* CLOSE BUTTON         */
/* ==================== */

.close {
    color: #a1a1aa;
    opacity: 1;
    text-shadow: none;
}

.close:hover {
    color: #fff;
}

/* ==================== */
/* TEXT UTILITIES       */
/* ==================== */

.text-primary { color: #D4A853 !important; }
.text-secondary { color: #a1a1aa !important; }
.text-success { color: #22c55e !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #B51220 !important; }
.text-info { color: #60a5fa !important; }
.text-light { color: #F4F4F5 !important; }
.text-muted { color: #71717a !important; }

.bg-primary { background-color: #9F1239 !important; }
.bg-secondary { background-color: #292929 !important; }
.bg-success { background-color: #166534 !important; }
.bg-danger { background-color: #dc2626 !important; }
.bg-warning { background-color: #B51220 !important; }
.bg-info { background-color: #1e40af !important; }
.bg-light { background-color: rgba(255, 255, 255, 0.08) !important; }
.bg-dark { background-color: #18181B !important; }

/* ==================== */
/* BORDER UTILITIES    */
/* ==================== */

.border { border-color: rgba(255, 255, 255, 0.08) !important; }
.border-secondary { border-color: rgba(255, 255, 255, 0.1) !important; }
.border-primary { border-color: #9F1239 !important; }
.border-success { border-color: #22c55e !important; }
.border-warning { border-color: #B51220 !important; }
.border-danger { border-color: #dc2626 !important; }
.border-gold { border-color: #D4A853 !important; }

/* ==================== */
/* CUSTOM SELECT        */
/* ==================== */

select.form-control {
    appearance: none;
    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='%23a1a1aa' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}
