.item-container {

    width: 90%;
    max-width: 1300px;
    margin: 40px auto;

}


.page-header {

    margin-bottom: 30px;

}


.page-header h1 {

    color: #45208C;
    font-size: 40px;

}


.page-header p {

    color: #666;

}


/* ===========================
   ITEM FILTER
=========================== */

.filter-box {

    background: #fff;

    padding: 25px;

    border-radius: 18px;

    display: flex;

    gap: 20px;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 40px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);

}


.search-group {

    flex: 1;

}


.search-group input {

    width: 100%;

    padding: 14px 18px;

    border: 1px solid #ddd;

    border-radius: 12px;

    font-size: 15px;

}


.filter-group {

    display: flex;

    gap: 12px;

}


.filter-group select {

    padding: 14px 18px;

    border: 1px solid #ddd;

    border-radius: 12px;

    background: white;

    font-size: 15px;

}


.filter-group button {

    padding: 14px 25px;

    border: none;

    border-radius: 12px;

    background: #6F42C1;

    color: white;

    font-weight: bold;

    cursor: pointer;

}


.filter-group button:hover {

    background: #45208C;

}


/* ===========================
   ITEM GRID
=========================== */

.item-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 30px;

}


.item-card {

    background: #fff;

    border-radius: 18px;

    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);

    transition: .3s;

    padding-bottom: 25px;

}


.item-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .12);

}


.item-card img {

    width: 100%;

    height: 230px;

    object-fit: cover;

    border-radius: 15px 15px 0 0;

}


.item-body {

    padding: 20px;

}


.item-body h3 {

    color: #45208C;

    margin-bottom: 10px;

}


/* ===========================
   STATUS
=========================== */

.status {

    display: inline-block;

    padding: 6px 14px;

    border-radius: 30px;

    color: #fff;

    font-size: 13px;

}


.status.lost {

    background: #dc3545;

}


.status.found {

    background: #28a745;

}


/* ===========================
   VIEW DETAILS BUTTON
=========================== */

.view-btn {

    display: inline-block;

    width: auto;

    min-width: 120px;

    margin-top: 8px;

    padding: 10px 20px;

    background: #6F42C1;

    color: #ffffff;

    border: none;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 600;

    line-height: 1.5;

    text-decoration: none;

    text-align: center;

    cursor: pointer;

    box-sizing: border-box;

    transition: all 0.3s ease;

}


.view-btn:hover {

    background: #45208C;

    color: #ffffff;

    transform: translateY(-2px);

}


/* ===========================
   EMPTY STATE
=========================== */

.empty-state {

    grid-column: 1/-1;

    text-align: center;

    padding: 60px;

}


.empty-state img {

    width: 220px;

}


/* ===========================
   ITEM DETAILS
=========================== */

.details-container {

    width: 90%;

    max-width: 1200px;

    margin: 50px auto;

}


.details-card {

    display: grid;

    grid-template-columns: 420px 1fr;

    gap: 40px;

    background: #fff;

    border-radius: 20px;

    padding: 30px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .08);

}


.details-image img {

    width: 100%;

    border-radius: 15px;

    object-fit: cover;

}


.details-info h2 {

    color: #45208C;

    margin-bottom: 25px;

}


.details-info table {

    width: 100%;

    border-collapse: collapse;

    margin-bottom: 25px;

}


.details-info td {

    padding: 12px 0;

    border-bottom: 1px solid #eee;

}


.description {

    line-height: 30px;

    color: #666;

}


.button-group {

    margin-top: 30px;

    display: flex;

    gap: 15px;

}


.back-btn {

    text-decoration: none;

    background: #ccc;

    color: #333;

    padding: 12px 25px;

    border-radius: 10px;

}


.claim-btn {

    text-decoration: none;

    background: #6F42C1;

    color: white;

    padding: 12px 25px;

    border-radius: 10px;

    transition: .3s;

}


.claim-btn:hover {

    background: #45208C;

}


/* ==================================================
   FORCE VIEW DETAILS BUTTON STYLE
   FINAL OVERRIDE
================================================== */

.item-card .item-body .view-btn {

    display: inline-block !important;

    width: auto !important;

    min-width: 120px !important;

    margin: 10px 0 0 0 !important;

    padding: 10px 20px !important;

    background: #6F42C1 !important;

    color: #ffffff !important;

    border: none !important;

    border-radius: 10px !important;

    font-size: 14px !important;

    font-weight: 600 !important;

    line-height: 1.5 !important;

    text-decoration: none !important;

    text-align: center !important;

    cursor: pointer !important;

    box-sizing: border-box !important;

    transition: all 0.3s ease !important;

}


.item-card .item-body .view-btn:hover {

    background: #45208C !important;

    color: #ffffff !important;

    transform: translateY(-2px);

}

/* ==================================================
   VIEW DETAILS BUTTON
================================================== */

.item-card .item-body .view-btn {

    display: inline-block !important;

    width: auto !important;

    min-width: 120px !important;

    margin: 10px 0 0 0 !important;

    padding: 10px 20px !important;

    background: #6F42C1 !important;

    color: #ffffff !important;

    border: none !important;

    border-radius: 10px !important;

    font-size: 14px !important;

    font-weight: 600 !important;

    line-height: 1.5 !important;

    text-decoration: none !important;

    text-align: center !important;

    cursor: pointer !important;

    box-sizing: border-box !important;

    transition: all 0.3s ease !important;

}


/* Hover */

.item-card .item-body .view-btn:hover {

    background: #45208C !important;

    color: #ffffff !important;

    transform: translateY(-2px);

}

/* ==================================================
   VIEW DETAILS BUTTON
================================================== */

.item-view-button {

    display: inline-block !important;

    background: #6F42C1 !important;

    color: #FFFFFF !important;

    padding: 12px 25px !important;

    border-radius: 10px !important;

    text-decoration: none !important;

    font-size: 14px !important;

    font-weight: 600 !important;

    text-align: center !important;

    cursor: pointer !important;

    transition: 0.3s ease !important;

}


.item-view-button:hover {

    background: #45208C !important;

    color: #FFFFFF !important;

    transform: translateY(-2px);

}

/* ==================================================
   ITEM DETAILS BUTTON
================================================== */

.button-group .btn {
    display: inline-block;

    padding: 12px 25px;

    background: #6F42C1;

    color: #ffffff;

    border: none;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    text-align: center;

    cursor: pointer;

    transition: 0.3s ease;

    box-sizing: border-box;
}


.button-group .btn:hover {
    background: #45208C;

    color: #ffffff;

    transform: translateY(-2px);
}