.als-license-blur {
    filter: blur(4px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}
.als-copy-license {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.als-copy-license .dashicons {
    font-size: 20px;
    line-height: 1;
}
.als-copy-license.copied .dashicons-clipboard {
    display: none;
}
.als-copy-license.copied .dashicons-yes {
    display: inline;
}
.als-copy-license .dashicons-yes {
    display: none;
}

.als-save-license {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.als-save-license .dashicons {
    font-size: 20px;
    line-height: 1;
}

.als-renew-license {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.3em;
}
.als-renew-license .dashicons {
    font-size: 20px;
    line-height: 1;
}

.als-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.als-icon-btn .dashicons {
    font-size: 20px;
    line-height: 1;
}

/* Backend specific button styling */
.als-admin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}
.als-admin-icon-btn .dashicons {
    font-size: 20px;
    line-height: 1;
    width: 20px;
    height: 20px;
}

.als-license-key {
    word-break: break-all;
}

.als-license-form {
    display: flex;
    gap: 0.5em;
    align-items: center;
    width: 100%;
}

.als-license-form input[type="text"] {
    flex: 1;
    min-width: 0;
}

.als-product.status-active {
    background-color: #d4ffd4;
}

.als-product.status-inactive {
    background-color: #ffd4d4;
}

.als-status-badge {
    display: inline-block;
    padding: 0 0.4em;
    border-radius: 4px;
    font-size: 0.8em;
    color: #fff;
    margin-right: 0.5em;
}

.als-status-badge.badge-active {
    background-color: #28a745;
}

.als-status-badge.badge-inactive {
    background-color: #dc3545;
}

.als-domain-header {
    text-align: left !important;
}

.als-domain-cell {
    text-align: left !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.als-product {
    position: relative;
    cursor: help;
}

.als-product[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 0.3em;
    background: #333;
    color: #fff;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.85em;
    display: none;
    z-index: 10;
    pointer-events: none;
}

.als-product[data-tooltip]:hover::after {
    display: block;
}

/* Limit width of Lizenztyp- und Lizenznummer-Feldern */
.als-license-fields select#license_type,
.als-license-fields input#license_number {
    max-width: 350px;
}

.als-license-table code {
    font-family: monospace;
}
.als-toggle-accordion {
    background: none;
    border: none;
    cursor: pointer;
}
.als-license-edit-row td {
    padding: 0;
    text-align: left;
}
.als-license-edit {
    padding: 0.5em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
.als-tag-input {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    border: 1px solid #ccc;
    padding: 0.3em;
    border-radius: 4px;
    counter-reset: domain;
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.als-tag-input input {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
}
.als-tag {
    background: #e2e2e2;
    padding: 0 0.3em;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    counter-increment: domain;
}
.als-last-check {
    margin-left: auto;
    font-size: 0.9em;
    color: #555;
}
.als-tag-text {
    flex: 1;
    text-align: left;
    word-break: break-all;
}
.als-tag::before {
    content: 'Domain ' counter(domain) ': ';
    margin-right: 0.3em;
}
.als-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    margin-right: 0.3em;
}
.als-tag-list {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    padding: 0.3em 0;
    counter-reset: domain;
    width: 100%;
    box-sizing: border-box;
}
.als-domain-counter {
    font-size: 0.9em;
}

.als-domain-limit {
    font-size: 0.9em;
    color: red;
}

.als-domain-table {
    width: 100%;
    border-collapse: collapse;
}

.als-domain-table th,
.als-domain-table td {
    text-align: left;
    padding: 0.2em 0.4em;
}

.als-dashboard {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 1em;
}

.als-dashboard .als-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 1em 1.5em;
    flex: 1 1 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.3em;
}

.als-dashboard .als-card:hover {
    background: #f9f9f9;
}

.als-dashboard .als-card h2 {
    margin: 0;
    font-size: 2em;
}

.als-card-icon {
    font-size: 32px;
    line-height: 1;
    display: block;
    width: 32px;
    margin: 0 auto 0.4em;
}

.als-dashboard .als-card p {
    margin: 0.5em 0 0;
    color: #555;
    font-size: 0.9em;
}

#als-revenue-chart {
    max-width: 100%;
}
.als-api-status {
    font-weight: bold;
    margin-bottom: 1em;
}
.als-api-status.ok { color: #46b450; }
.als-api-status.error { color: #dc3232; }
#wpadminbar .als-api-ok > .ab-item { color: #46b450; }
#wpadminbar .als-api-error > .ab-item { color: #dc3232; }
# Dashboard sections
.als-dashboard-section {
    margin-top: 2em;
}

.als-dashboard-section h2 {
    margin: 0.5em 0 0.5em;
}

.als-revenue-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .als-revenue-grid {
        grid-template-columns: 1fr;
    }
}

.als-dashboard-revenue {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 600px) {
    .als-dashboard-revenue {
        grid-template-columns: 1fr;
    }
}
.als-dashboard-revenue .als-card {
    flex: none;
}

.als-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.als-api-toggle {
    display: flex;
    align-items: center;
    gap: 0.5em;
}
