.item-card {
    background-color: #e3dabb;
    border: 2px solid #8c7b62;
    padding: 8px;
    display: flex;
    gap: 10px;
    min-height: 120px;
    color: #2b1d0e;
    border-radius: 4px;
    position: relative;
    box-sizing: border-box;
}

.item-card-left {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.item-card-image {
    width: 64px;
    height: 64px;
    border: 1px solid #8c7b62;
    background-color: #dcd0b0;
}

.item-card-right {
    flex-grow: 1;
    font-size: 11px;
}

.item-card-header {
    font-weight: bold;
    border-bottom: 1px solid #aaa;
    padding-bottom: 2px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-section {
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #ccc;
}

.item-section:last-child {
    border-bottom: none;
}

.item-section-title {
    color: #555;
    font-weight: bold;
    margin-bottom: 2px;
    display: block;
    text-align: left;
}

.item-prop-row {
    display: flex;
    justify-content: space-between;
}

.item-desc {
    font-style: italic;
    color: #555;
    margin-bottom: 4px;
}

.req-fail {
    color: #e74c3c;
    font-weight: bold;
}

.durability-bar {
    height: 8px;
    background-color: #aaa;
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
    border: 1px solid #666;
}

.durability-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.floating-item-window {
    position: absolute;
    z-index: 10000;
    min-width: 320px;
    max-width: 350px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    pointer-events: auto;
}

.floating-item-window .item-card-header {
    cursor: move;
    user-select: none;
}

.close-item-btn {
    background: #c0392b;
    border: 1px solid #5a4b3a;
    color: white;
    font-weight: bold;
    cursor: pointer;
    width: 20px;
    height: 20px;
    line-height: 16px;
    text-align: center;
    border-radius: 3px;
    font-size: 12px;
    padding: 0;
    margin-left: 10px;
}

.close-item-btn:hover {
    background: #e74c3c;
}