/* Logs specific styles */
.unifiedsmb-log-navigation {
    background-color: var(--usmb-white);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.unifiedsmb-log-tabs {
    display: flex;
    border-bottom: 1px solid var(--usmb-light-grey);
    margin-bottom: 16px;
    overflow-x: auto;
}

.unifiedsmb-log-tab {
    padding: 8px 16px;
    margin-right: 8px;
    border-bottom: 2px solid transparent;
    color: var(--usmb-dark-grey);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.unifiedsmb-log-tab:hover {
    color: var(--usmb-blue);
    border-bottom-color: var(--usmb-light-blue);
}

.unifiedsmb-log-tab.active {
    color: var(--usmb-blue);
    border-bottom-color: var(--usmb-blue);
}

.unifiedsmb-log-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.unifiedsmb-logs-header {
    margin-bottom: 16px;
}

.unifiedsmb-logs-header h3 {
    margin: 0 0 8px 0;
    color: var(--usmb-blue);
}

.unifiedsmb-logs-header p {
    margin: 0;
    color: var(--usmb-dark-grey);
}

.unifiedsmb-logs-table-container {
    overflow-x: auto;
}

.unifiedsmb-logs-table {
    width: 100%;
    table-layout: fixed;
    white-space: nowrap;
}

.unifiedsmb-logs-table th.unifiedsmb-log-id {
    width: 60px;
}

.unifiedsmb-logs-table th.unifiedsmb-log-timestamp {
    width: 160px;
}

.unifiedsmb-logs-table th.unifiedsmb-log-direction,
.unifiedsmb-logs-table th.unifiedsmb-log-entity,
.unifiedsmb-logs-table th.unifiedsmb-log-action {
    width: 100px;
}

.unifiedsmb-logs-table th.unifiedsmb-log-endpoint {
    width: 180px;
}

.unifiedsmb-logs-table th.unifiedsmb-log-item-id {
    width: 80px;
}

.unifiedsmb-logs-table th.unifiedsmb-log-status {
    width: 100px;
}

.unifiedsmb-logs-table th.unifiedsmb-log-actions {
    width: 80px;
}

.unifiedsmb-logs-table th.unifiedsmb-log-message {
    width: auto;
}

.unifiedsmb-logs-table td {
    overflow: hidden;
    text-overflow: ellipsis;
}

.unifiedsmb-log-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.unifiedsmb-log-badge-system {
    background-color: var(--usmb-light-orange);
    color: var(--usmb-orange);
}

.unifiedsmb-log-badge-outgoing {
    background-color: var(--usmb-light-blue);
    color: var(--usmb-blue);
}

.unifiedsmb-log-badge-product {
    background-color: var(--usmb-light-blue);
    color: var(--usmb-blue);
}

.unifiedsmb-log-badge-category {
    background-color: var(--usmb-light-orange);
    color: var(--usmb-orange);
}

.unifiedsmb-log-badge-attribute {
    background-color: var(--usmb-light-green);
    color: var(--usmb-green);
}

.unifiedsmb-log-badge-create {
    background-color: var(--usmb-light-green);
    color: var(--usmb-green);
}

.unifiedsmb-log-badge-update {
    background-color: var(--usmb-light-blue);
    color: var(--usmb-blue);
}

.unifiedsmb-log-badge-delete {
    background-color: var(--usmb-light-red);
    color: var(--usmb-red);
}

.unifiedsmb-status-success {
    background-color: var(--usmb-light-green);
    color: var(--usmb-green);
}

.unifiedsmb-status-error {
    background-color: var(--usmb-light-red);
    color: var(--usmb-red);
}

.unifiedsmb-status-warning {
    background-color: var(--usmb-light-orange);
    color: var(--usmb-orange);
}

.unifiedsmb-status-info {
    background-color: var(--usmb-light-blue);
    color: var(--usmb-blue);
}

/* Modal Styles */
.unifiedsmb-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.unifiedsmb-modal-content {
    position: relative;
    background-color: var(--usmb-white);
    margin: 10% auto;
    padding: 0;
    border-radius: 4px;
    width: 600px;
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: unifiedsmbModalFadeIn 0.3s;
}

@keyframes unifiedsmbModalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.unifiedsmb-modal-header {
    padding: 16px;
    border-bottom: 1px solid var(--usmb-light-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unifiedsmb-modal-header h3 {
    margin: 0;
    color: var(--usmb-blue);
}

.unifiedsmb-modal-close {
    color: var(--usmb-dark-grey);
    font-size: 24px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.unifiedsmb-modal-close:hover {
    color: var(--usmb-black);
}

.unifiedsmb-modal-body {
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.unifiedsmb-modal-footer {
    padding: 16px;
    border-top: 1px solid var(--usmb-light-grey);
    text-align: right;
}

.unifiedsmb-log-details-row {
    margin-bottom: 16px;
}

.unifiedsmb-log-details-label {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--usmb-dark-grey);
}

.unifiedsmb-log-details-value {
    background-color: var(--usmb-light-grey);
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
}

.unifiedsmb-log-details-value pre {
    margin: 0;
    white-space: pre-wrap;
}

@media (max-width: 782px) {
    .unifiedsmb-log-filter-row {
        flex-direction: column;
    }
    
    .unifiedsmb-log-filter-row > * {
        width: 100%;
    }
}