/* =========================================================
   Header
   ========================================================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}


/* =========================================================
   Main
   ========================================================= */

.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 0 40px;
}


/* =========================================================
   Disposal Notice
   ========================================================= */

.disposal-notice {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 22px;
}

.disposal-notice-title {
    margin-bottom: 7px;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.disposal-notice-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.disposal-notice a,
.disposal-contact a {
    color: #374151;
    font-weight: 500;
    text-decoration: none;
}

.disposal-notice a:hover,
.disposal-contact a:hover {
    text-decoration: underline;
}


/* =========================================================
   Filters
   ========================================================= */

.filters {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns:
        minmax(220px, 2fr)
        repeat(5, minmax(120px, 1fr));
    gap: 10px;
}

.filters input,
.filters select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
}


/* =========================================================
   Asset Count
   ========================================================= */

.asset-count {
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   Asset Grid
   ========================================================= */

.asset-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(250px, 1fr)
        );
    gap: 18px;
}


/* =========================================================
   Asset Card
   ========================================================= */

.asset-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.asset-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}


/* =========================================================
   Card Image
   ========================================================= */

.asset-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.asset-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.no-image {
    color: #9ca3af;
    font-size: 14px;
}


/* =========================================================
   Card Content
   ========================================================= */

.asset-card-content {
    padding: 15px 16px 16px;
}

.asset-card-name {
    margin-bottom: 7px;
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

.asset-card-manufacture {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.asset-card-model {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin-top: 1px;
}

.asset-quantity {
    margin-top: 9px;
    color: #4b5563;
    font-size: 13px;
}


/* =========================================================
   Detail View
   ========================================================= */

.detail-wrapper {
    width: 100%;
}

.back-button {
    border: none;
    background: transparent;
    padding: 0;
    margin-bottom: 18px;
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
}

.back-button:hover {
    color: #111827;
    text-decoration: underline;
}

.detail-view {
    display: grid;
    grid-template-columns:
        minmax(0, 3fr)
        minmax(300px, 2fr);
    gap: 25px;
}


/* =========================================================
   Detail Information
   ========================================================= */

.detail-info {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
}

.detail-info h2 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.info-row {
    padding: 11px 0;
    border-bottom: 1px solid #f0f1f3;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    margin-bottom: 4px;
    color: #9ca3af;
    font-size: 12px;
}

.info-value {
    color: #374151;
    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   Detail Contact
   ========================================================= */

.disposal-contact {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f0f1f3;
}

.disposal-contact-title {
    margin-bottom: 6px;
    color: #111827;
    font-size: 15px;
    font-weight: 600;
}

.disposal-contact-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   Footer
   ========================================================= */

.footer {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 30px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.footer a {
    color: #4b5563;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   Pagination
   ========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    color: #374151;
    transition: background 0.15s ease;
}

.pagination button:hover:not(:disabled) {
    background: #f3f4f6;
}

.pagination button.active {
    background: #f3f4f6;
    border-color: #9ca3af;
    font-weight: 600;
}

.pagination button:disabled {
    color: #9ca3af;
    cursor: default;
    background: #f9fafb;
}

.pagination-ellipsis {
    min-width: 24px;
    text-align: center;
    color: #6b7280;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
    .filters {
        grid-template-columns:
            1fr
            1fr
            1fr;
    }
}

@media (max-width: 900px) {
    .detail-view {
        grid-template-columns: 1fr;
    }

    .filters {
        grid-template-columns:
            1fr 1fr;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 16px 20px;
    }

    .header h1 {
        font-size: 21px;
    }

    .main {
        padding: 20px 15px 30px;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .detail-info {
        padding: 20px;
    }

    .footer {
        padding: 0 15px 25px;
    }
}