/* Main Styles for Rebate Portal */

/* Brand theme — override Bootstrap's default primary blue (#0d6efd) with
   the Innovent portal theme #15639a. Covers .bg-primary, .text-primary,
   .btn-primary, .border-primary, .table-primary, .badge.bg-primary, and any
   other Bootstrap utility that consumes --bs-primary. Updated 02 Jun 2026. */
:root {
    --bs-primary: #15639a;
    --bs-primary-rgb: 21, 99, 154;
}
.bg-primary { background-color: #15639a !important; }
.border-primary { border-color: #15639a !important; }
.btn-outline-primary {
    color: #15639a;
    border-color: #15639a;
}
.btn-outline-primary:hover {
    background-color: #15639a;
    border-color: #15639a;
    color: #fff;
}
.link-primary, a.link-primary { color: #15639a !important; }
.navbar-dark { background-color: #15639a !important; }

/* Global Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.text-primary {
    color: #15639a !important;
}

.text-success {
    color: #198754 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Dashboard Stats */
.stats-card {
    border-left: 4px solid;
    border-radius: 0.25rem;
}

.stats-card.primary {
    border-left-color: #15639a;
}

.stats-card.success {
    border-left-color: #198754;
}

.stats-card.info {
    border-left-color: #0dcaf0;
}

.stats-card.warning {
    border-left-color: #ffc107;
}

.stats-card.danger {
    border-left-color: #dc3545;
}

.stats-icon {
    font-size: 2rem;
    opacity: 0.8;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(21, 99, 154, 0.05);
}

.table th {
    font-weight: 600;
}

/* Status Badges */
.badge.status-pending {
    background-color: #ffc107;
}

.badge.status-confirmed {
    background-color: #198754;
}

.badge.status-rejected {
    background-color: #dc3545;
}

.badge.status-paid {
    background-color: #0dcaf0;
}

/* Asset Status */
.badge.status-received {
    background-color: #6c757d;
}

.badge.status-processing {
    background-color: #0dcaf0;
}

.badge.status-testing {
    background-color: #6610f2;
}

.badge.status-ready {
    background-color: #15639a;
}

.badge.status-listed {
    background-color: #ffc107;
}

.badge.status-sold {
    background-color: #198754;
}

.badge.status-scrapped {
    background-color: #dc3545;
}

.badge.status-returned {
    background-color: #6c757d;
}

/* Forms */
.form-label {
    font-weight: 500;
}

.form-control:focus {
    border-color: #15639a;
    box-shadow: 0 0 0 0.25rem rgba(21, 99, 154, 0.25);
}

/* Buttons */
.btn {
    font-weight: 500;
}

.btn-primary {
    background-color: #15639a;
    border-color: #15639a;
}

.btn-primary:hover {
    background-color: #114f7d;
    border-color: #0e3f64;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #15639a;
    border-color: #15639a;
}

/* Footer */
footer {
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
}