/**
 * Public styles
 */

.mp-lm-licenses-container,
.mp-lm-downloads-container {
    margin: 20px 0;
}

.mp-lm-license-key {
    font-family: monospace;
    font-size: 14px;
    background: #f5f5f5;
    padding: 5px 8px;
    border-radius: 4px;
    display: inline-block;
}

.mp-lm-copy-key {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 3px;
}

.mp-lm-copy-key:hover {
    background: #f0f0f0;
}

.mp-lm-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.mp-lm-status-active {
    background: #d4edda;
    color: #155724;
}

.mp-lm-status-suspended {
    background: #fff3cd;
    color: #856404;
}

.mp-lm-status-revoked {
    background: #f8d7da;
    color: #721c24;
}

.mp-lm-status-expired {
    background: #e2e3e5;
    color: #383d41;
}

.mp-lm-activation-meter {
    background: #f0f0f0;
    border-radius: 10px;
    height: 20px;
    position: relative;
    width: 150px;
    overflow: hidden;
    display: inline-block;
}

.mp-lm-meter-bar {
    background: #4CAF50;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.3s ease;
}

.mp-lm-activation-meter span {
    position: relative;
    z-index: 1;
    color: #000;
    font-size: 11px;
    line-height: 20px;
    padding: 0 5px;
    display: block;
    text-align: center;
    font-weight: bold;
}

.mp-lm-view-details,
.mp-lm-deactivate-all {
    margin: 2px;
    padding: 4px 8px;
    font-size: 12px;
}

.mp-lm-domains-list {
    background: #f9f9f9;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
}

.mp-lm-domains-list ul {
    margin: 10px 0;
    padding-left: 20px;
}

.mp-lm-domains-list li {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mp-lm-remove-domain {
    color: #dc3232;
    cursor: pointer;
    background: none;
    border: 1px solid #dc3232;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 11px;
}

.mp-lm-remove-domain:hover {
    background: #dc3232;
    color: #fff;
}

@media (max-width: 768px) {
    .mp-lm-licenses-container table,
    .mp-lm-downloads-container table {
        display: block;
        overflow-x: auto;
    }
    
    .mp-lm-activation-meter {
        width: 100px;
    }
}