/* iWorx Licensing - My Account Styles */

.iworx-licenses-wrapper {
    margin: 20px 0;
}

.iworx-licenses-wrapper h2 {
    margin-bottom: 20px;
}

.iworx-licenses-table {
    width: 100%;
    border-collapse: collapse;
}

.iworx-licenses-table th,
.iworx-licenses-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.iworx-licenses-table th {
    background-color: #f7f7f7;
    font-weight: 600;
}

.iworx-license-key {
    background-color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 14px;
    display: inline-block;
    margin-right: 10px;
}

.iworx-copy-license {
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
}

.iworx-copy-license.copied {
    background-color: #46b450;
    color: white;
    border-color: #46b450;
}

.iworx-status {
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 500;
}

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

.iworx-status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.iworx-status-expired {
    background-color: #fff3cd;
    color: #856404;
}

.iworx-domain-cell {
    min-width: 250px;
}

.iworx-domain-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.iworx-no-domain {
    color: #999;
    font-style: italic;
}

.iworx-domain-form {
    margin-top: 10px;
}

.iworx-domain-input {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.iworx-domain-form .button {
    margin-right: 5px;
}

.iworx-domain-form .description {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.iworx-license-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #2271b1;
}

.iworx-license-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.iworx-license-info ul {
    margin: 0;
    padding-left: 20px;
}

.iworx-license-info li {
    margin-bottom: 8px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .iworx-licenses-table {
        border: 0;
    }
    
    .iworx-licenses-table thead {
        display: none;
    }
    
    .iworx-licenses-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 15px;
    }
    
    .iworx-licenses-table td {
        display: block;
        text-align: right;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }
    
    .iworx-licenses-table td:last-child {
        border-bottom: 0;
    }
    
    .iworx-licenses-table td::before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
    }
    
    .iworx-license-key {
        display: block;
        margin: 5px 0;
    }
    
    .iworx-domain-display {
        flex-direction: column;
        align-items: flex-end;
    }
}

/* Loading state */
.iworx-loading {
    opacity: 0.6;
    pointer-events: none;
}

.iworx-loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: ".";
    }
    40% {
        content: "..";
    }
    60% {
        content: "...";
    }
    80%, 100% {
        content: "";
    }
}
