/* ============================================================
   INVENTORY LAYOUT UPDATE - MODERN RESPONSIVE DESIGN
   Prefix: inv-
   Inspired by user-subscription-views.css (2025 edition)
   ============================================================ */

/* === GLOBAL CONTAINER === */
.inv-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.inv-center {
    text-align: center;
}

/* === PAGE TITLES === */
.inv-page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inv-page-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* === ALERTS === */
.inv-alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

.inv-alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.inv-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* === CARD STYLING === */
.inv-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* === BUTTONS === */
.inv-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.inv-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff !important;
}

.inv-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
}

.inv-btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff !important;
}

.inv-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff !important;
}

.inv-btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff !important;
}

.inv-btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff !important;
}

.inv-btn:hover {
    opacity: 0.9;
}

/* === TABLE STYLING === */
.inv-table-container {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.inv-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.inv-table thead {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
}

.inv-table th, .inv-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.inv-table th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inv-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.inv-table tbody tr:hover {
    background: #f9fafb;
}

/* === STATUS BADGES === */
.inv-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.inv-badge-active {
    background: #d1fae5;
    color: #065f46;
}

.inv-badge-inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* === FILTER SECTION === */
.inv-filter-toggle {
    background: #2563eb;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.inv-filter-toggle:hover {
    background: #1e3a8a;
}

.inv-filter-form {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    display: none;
}

.inv-filter-form.show {
    display: block;
}

.inv-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.inv-filter-group {
    flex: 1;
    min-width: 200px;
}

/* === PAGINATION === */
.inv-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.inv-pagination a,
.inv-pagination span {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
}

.inv-pagination a:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.inv-pagination .active {
    background: #2563eb;
    color: #fff;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .inv-container {
        padding: 12px;
    }

    .inv-page-title {
        font-size: 24px;
    }

    .inv-filter-row {
        flex-direction: column;
    }

    .inv-table th,
    .inv-table td {
        font-size: 12px;
        padding: 10px;
    }

    .inv-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* === UTILITY CLASSES === */
.inv-mt-1 { margin-top: 0.5rem; }
.inv-mt-2 { margin-top: 1rem; }
.inv-mt-3 { margin-top: 1.5rem; }
.inv-mb-1 { margin-bottom: 0.5rem; }
.inv-mb-2 { margin-bottom: 1rem; }
.inv-mb-3 { margin-bottom: 1.5rem; }
.inv-text-center { text-align: center; }
.inv-text-right { text-align: right; }
.inv-text-left { text-align: left; }






/* ===== MODAL STYLING (for inv-modal) ===== */

.inv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
}

.inv-modal.hidden {
    display: none; /* hide completely when closed */
}

.inv-modal-content {
    background: #fff;
    padding: 28px 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.inv-modal-title {
    margin-bottom: 18px;
    font-size: 20px;
    color: #222;
    text-align: center;
}

.inv-modal-content label {
    display: block;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 6px;
    color: #333;
}

.inv-modal-content input,
.inv-modal-content select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.inv-modal-buttons {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.inv-btn-cancel {
    background: #ccc;
    color: #222;
}

.inv-btn-cancel:hover {
    background: #bbb;
}
