.my-items-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: fit-content;
    box-sizing: border-box;
}

.my-items-list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 90%;
}

.my-items-list-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    margin-bottom: 30px;
}

.my-items-list-title h1 {
    font-size: 1.7em;
    font-weight: 500;
    margin: 0;
}

.my-items-list-title p {
    font-size: 1em;
    font-weight: 200;
    color: gray;
    margin: 0;
}

.my-items-list-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    padding-bottom: 10px;
    min-height: fit-content;
    border-bottom-style: solid;
    border-width: 1px;
    border-color: rgb(233, 233, 233);
    box-sizing: border-box;
}

.my-items-list-input {
    font-size: 0.8em;
    border: 1px solid rgb(233, 233, 233);
    border-radius: 8px;
    min-width: 50%;
    box-sizing: border-box;
    padding: 10px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #f5f5f5;
    outline: none;
}

.my-items-list-input:focus {
    border: 2px solid rgb(100, 100, 226);
}

.my-items-filter-button {
    background-color: #f5f5f5;
    border: 1px solid rgb(233, 233, 233);
    border-radius: 8px;
    box-sizing: border-box;
    padding: 10px;
    width: 80px;
    font-size: 0.8em;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.my-items-filter-button:hover {
    border: none;
    background-color: rgb(100, 100, 226);
    color: white;
}

.my-items-item-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 10px 0;
    gap: 15px;
    /* space between items */
    overflow-y: auto;
    box-sizing: border-box;
}

/* item style */
.my-items-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 400px;
    background-color: #f2f2f2;
    border-radius: 10px;
    border: 1px solid #e4e4e4;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.my-items-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.my-items-item-cover {
    width: 100%;
    height: 200px;
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
}

.my-items-item-cover .my-items-top-left {
    position: relative;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    height: fit-content;
}

.my-items-item-cover .my-items-top-right {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: fit-content;
}

.my-items-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-items-top-left p {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(226, 104, 104);
    color: white;
    padding: 5px;
    width: 50px;
    border-radius: 20px;
    font-size: 0.7em;
    margin: 10px;
}

.my-items-top-left label {
    position: absolute;
    gap: 5px;
    display: flex;
    left: 70px;
    justify-content: center;
    align-items: center;
    background-color: rgb(249, 249, 249);
    color: black;
    padding: 5px;
    padding-left:10px;
    padding-right: 10px;
    border-radius: 20px;
    font-size: 0.7em;
    margin: 10px;
}
.my-items-top-left label img{
    width: 15px;
}

.my-items-top-right button {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 5px;
    width: 25px;
    height: 25px;
    border-radius: 20px;
    font-size: 0.7em;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
}

.my-items-top-right button:hover {
    background-color: rgb(100, 100, 226);
}

.my-items-i-desc-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.my-items-i-desc-wrapper h1 {
    font-size: 1.3em;
    font-weight: 400;
    margin: 0 0 5px 0;
}

.my-items-i-desc-wrapper p {
    font-size: 0.95em;
    font-weight: 200;
    margin: 2px 0;
    color: gray;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-items-i-desc-wrapper div {
    display: flex;
    gap: 20px;
    flex-direction: column;
    min-height: 55%;
}

.my-items-i-desc-wrapper div span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.my-items-where {
    font-size: 0.9em;
    font-weight: 200;
    margin: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-items-contact-button {
    width: 100%;
    height: 45px;
    margin-top: 10px;
    background-color: rgb(127, 146, 234);
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-items-contact-button:hover {
    background-color: rgb(149, 165, 237);
}

/* pop up item */
.my-items-item-desc {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    max-width: fit-content;
    min-width: fit-content;
    min-height: fit-content;
    background-color: white;
    z-index: 1001;
    box-sizing: border-box;
    padding: 20px;
}

.my-items-desc-item-name {
    font-size: 1.7em;
    font-weight: 500;
    margin: 0;
}

.my-items-desc-desc {
    min-height: 70px;
    max-height: 80px;
    min-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: rgb(79, 79, 79);
}

.my-items-desc-image {
    display: flex;
    height: 270px;
    min-width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.my-items-desc-info {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin-bottom: 10px;
    margin-top: 10px;
    gap: 10px;
}

.my-items-desc-person-name {
    margin: 0;
    font-size: 1em;
    font-weight: 400;
    color: rgb(79, 79, 79);
}

.my-items-desc-where {
    margin: 0;
    font-size: 1em;
    font-weight: 400;
    color: rgb(79, 79, 79);
}

.my-items-desc-when {
    margin: 0;
    font-size: 1em;
    font-weight: 400;
    color: rgb(79, 79, 79);
}

.my-items-desc-contact {
    border: none;
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    font-size: 1.1em;
    background-color: rgb(127, 146, 234);
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.my-items-desc-contact:hover {
    background-color: rgb(149, 165, 237);
}

.my-items-item-span-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding-left: 3px;
}

.my-items-item-span-tag-image {
    width: 20px;
}

.my-items-filter-desc {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    background-color: white;
    width: 150px;
    height: fit-content;
    border-radius: 10px;
    border: 1px solid rgb(233, 233, 233);
    background-color: #ffffff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.my-items-filter-desc span {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    width: 100%;
    min-width: fit-content;
}

.my-items-filter-desc span label {
    font-size: 0.9em;
    color: gray;
    margin-top: 10px;
}

.my-items-filter-desc span select {
    display: flex;
    font-size: 0.9em;
    padding: 10px;
    color: gray;
    background-color: white;
    border: 1px solid rgb(233, 233, 233);
    border-radius: 10px;
    cursor: pointer;
}

.my-items-dot-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-height: 100%;
    position: relative;
}

.my-items-dot-desc{
    box-sizing: border-box;
    display: none;
    position: absolute;
    justify-content: space-evenly;
    flex-direction: column;
    top: calc(100% + 45px);
    right: calc(100% + 8px);
    width: 150px;
    gap: 10px;
    height: fit-content;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgb(233, 233, 233);
    background-color: #f0f0f0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.my-items-dot-desc span{
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    font-size: 0.8em;
    text-overflow: ellipsis;
    flex-wrap: nowrap;
    cursor: pointer;
}

.my-items-dot-desc span:hover{
    color: rgb(91, 91, 91);
}

.my-items-dot-desc span img{
    width: 20px;
}

.item-desc-delete{
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    min-height: fit-content;
    background-color: white;
    z-index: 1001;
    box-sizing: border-box;
    padding: 20px;
}

.item-desc-delete h1{
    margin: 0;
    font-size: 1.5em;
    font-weight: 500;
}

.item-desc-delete p {
    color: gray;
}

.item-desc-delete span{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    gap: 5px;
}

.delete-cancel-button{
    border: 1px solid rgb(233, 233, 233);
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}
.delete-cancel-button:hover{
    background-color: rgb(239, 239, 239);
}
.delete-button{
    border: none;
    background-color: #e26868;
    color: white;
    border-radius: 5px;
    padding: 10px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #ee8080;
}
/* Tablet */
@media (min-width: 768px) {
    .my-items-list-title h1 {
        font-size: 2em;
    }

    .my-items-list-title p {
        font-size: 1em;
    }

    .my-items-item-container {
        justify-content: flex-start;
    }

    .my-items-item {
        width: 48%;
        max-width: 300px;
    }

    .my-items-case {
        font-size: 1em;
    }

    .my-items-date {
        font-size: 0.7em;
    }

    .my-items-name {
        font-size: 1.1em;
    }

    .my-items-where {
        font-size: 0.8em;
    }

    .my-items-list-input {
        font-size: 0.9em;
        min-width: 25%;
    }

    .my-items-filter-button {
        width: 120px;
        font-size: 0.9em;
    }

    .my-items-item-desc {
        min-width: 450px;
    }

    .my-items-desc-desc {
        max-width: 450px;
    }

    .my-items-desc-image {
        min-width: 450px;
    }

    .my-items-desc-person-name {
        font-size: 1em;
    }

    .my-items-desc-where {
        font-size: 1em;
    }

    .my-items-desc-when {
        font-size: 1em;
    }
    .my-items-item-cover{
        height: 180px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .my-items-item {
        min-width: 30%;
        max-width: 250px;
    }

    .my-items-case {
        font-size: 1.2em;
    }

    .my-items-date {
        font-size: 0.9em;
    }

    .my-items-name {
        font-size: 1.2em;
    }

    .my-items-where {
        font-size: 0.8em;
    }

    /* .item-desc {
        min-width: 550px;
        min-height: 650px;
    } */
    .my-items-desc-desc {
        max-width: 550px;
    }

    .my-items-desc-image {
        min-width: 100%;
        min-height: 370px;
    }
    .my-items-item-cover{
        height: 200px;
    }
}