.user-licenses-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.license-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.license-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
    font-weight: 600;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    text-transform: uppercase;
}

.status.active {
    background-color: #e6ffe6;
    color: #006600;
}

.status.inactive {
    background-color: #ffe6e6;
    color: #660000;
}

.license-details {
    margin-bottom: 20px;
    font-size: 0.95em;
}

.license-details p {
    margin: 8px 0;
    line-height: 1.4;
}

.license-details strong {
    display: inline-block;
    width: 100px;
    color: #666;
}

.activation-sites {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.activation-sites h4 {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 1em;
    font-weight: 600;
}

.activation-sites ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activation-sites li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
}

.activation-sites li:last-child {
    border-bottom: none;
}

.activation-sites li:hover {
    background-color: #f5f5f5;
}

.deactivate-site-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.2s ease;
}

.deactivate-site-btn:hover {
    background-color: #c82333;
}

.deactivate-site-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.license-key-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.license-key-full {
    display: block;
}

.license-key-short {
    display: none;
}

.copy-license {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #5F8CFF;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.copy-license:hover {
    color: #333;
}

.copy-license .tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    display: none;
}

.copy-license:hover .tooltip {
    display: block;
}

.copy-license:focus {
    background: #4CAF50;
}

.copy-license:hover {
    background: #5F8CFF;
}

.copied .tooltip {
    display: block;
    background: #4CAF50;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .license-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .activation-sites li {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .license-details strong {
        width: auto;
        margin-right: 10px;
    }
    
    .license-key-full {
        display: none;
    }

    .license-key-short {
        display: block;
    }
}