
/* ===== CONTAINER ===== */
.entity-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #1e1e1e;
    color: #e5e5e5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border-radius: 10px;
}

/* ===== HEADER WITH GRADIENT ===== */
.entity-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 140px;
}

.entity-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.entity-header-content {
    width: 100%;
}

.entity-header-info {
    color: #ffffff;
}

.entity-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.entity-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
}

.entity-subtitle i {
    font-size: 16px;
}

.entity-id {
    margin-left: 8px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== TAB NAVIGATION ===== */
.entity-tabs {
    display: flex;
    gap: 0;
    background: #2a2a2a;
    border-radius: 8px 8px 0 0;
    padding: 0;
    margin-bottom: 0;
    overflow-x: auto;
    border-bottom: 1px solid #3a3a3a;
}

.entity-tab {
    flex: 1;
    min-width: 140px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.entity-tab i{
    margin-top: 2px;
}

.entity-tab:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #e5e5e5;
}

.entity-tab.active {
    color: #41a317;
    border-bottom-color: #41a317;
    background: rgba(65, 163, 23, 0.08);
}

.entity-tab i {
    font-size: 15px;
}

/* ===== TAB CONTENT ===== */
.entity-content {
    background: #2a2a2a;
    border-radius: 0 0 8px 8px;
    padding: 24px;
    min-height: 300px;
}

.entity-tab-content {
    display: none;
}

.entity-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTIONS ===== */
.entity-section {
    margin-bottom: 24px;
}

.entity-section:last-child {
    margin-bottom: 0;
}

.entity-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a3a3a;
}

.entity-section-title i {
    color: #41a317;
    font-size: 18px;
}

/* ===== GRID LAYOUT FOR INFO ===== */
.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.entity-field {
    background: #1e1e1e;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #333;
}

.entity-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 6px;
}

.entity-value {
    font-size: 15px;
    font-weight: 400;
    color: #e5e5e5;
    word-break: break-word;
}

/* ===== PROGRESS BARS ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.progress-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* ===== TABLES ===== */
.entity-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.entity-table {
    width: 100%;
    border-collapse: collapse;
    background: #252525;
}

.entity-table thead {
    background: #1e1e1e;
}

.entity-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    border-bottom: 2px solid #3a3a3a;
}

.entity-table tbody tr {
    border-bottom: 1px solid #3a3a3a;
    transition: background 0.2s ease;
}

.entity-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.entity-table tbody tr:last-child {
    border-bottom: none;
}

.entity-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: #e5e5e5;
}

.entity-table .positive {
    color: #22c55e;
    font-weight: 600;
}

.entity-table .negative {
    color: #ef4444;
    font-weight: 600;
}

/* ===== INVENTORY ITEMS ===== */
.entity-inventory-item {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: all 0.2s ease;
}

.entity-inventory-item:hover {
    border-color: #41a317;
    background: rgba(65, 163, 23, 0.05);
}

.inventory-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #252525;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #41a317;
    flex-shrink: 0;
}

.inventory-item-info {
    flex: 1;
}

.inventory-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e5e5;
    margin-bottom: 3px;
}

.inventory-item-quantity {
    font-size: 12px;
    color: #888;
}

.inventory-item-price {
    font-size: 12px;
    color: #22c55e;
    font-weight: 500;
    margin-top: 2px;
}

/* ===== BADGES ===== */
.entity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entity-badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.entity-badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.entity-badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.entity-badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #41a317;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* ===== EMPTY STATES ===== */
.entity-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.entity-empty i {
    font-size: 64px;
    color: #444;
    margin-bottom: 16px;
    display: block;
}

.entity-empty p {
    font-size: 16px;
    margin: 0;
    color: #888;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .entity-container {
        padding: 15px;
    }

    .entity-content {
        padding: 20px;
    }

    .entity-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .entity-title {
        font-size: 28px;
    }

    .entity-header-overlay {
        padding: 20px;
    }

    .entity-tabs {
        flex-wrap: wrap;
    }


    .entity-content {
        padding: 15px;
    }

    .entity-grid {
        grid-template-columns: 1fr;
    }

    .entity-section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .entity-container {
        padding: 10px;
    }

    .entity-title {
        font-size: 22px;
    }

    .entity-header {
        min-height: 140px;
    }

    .entity-header-overlay {
        padding: 15px;
    }

    .entity-content {
        padding: 12px;
    }

    .entity-field {
        padding: 12px;
    }

    .entity-inventory-item {
        padding: 12px;
    }

    .inventory-item-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a4a4a;
}