/* Frontend Styles for License Manager */

.afl-license-manager {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.afl-license-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.afl-license-card.expired {
    border-color: #f44336;
    opacity: 0.8;
}

.afl-license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.afl-license-header h3 {
    margin: 0;
    font-size: 20px;
}

.afl-license-status {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.afl-license-status.status-active {
    background: #4caf50;
    color: white;
}

.afl-license-status.status-expired {
    background: #f44336;
    color: white;
}

.afl-license-body {
    padding: 20px;
}

.afl-license-key-section {
    margin-bottom: 20px;
}

.afl-license-key-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.afl-license-key {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 1px;
}

.afl-copy-button {
    padding: 10px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.afl-copy-button:hover {
    background: #1e40af;
}

.afl-license-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.afl-info-item strong {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.afl-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.afl-badge-danger {
    background: #fee;
    color: #c33;
}

.afl-badge-warning {
    background: #fffbea;
    color: #cc8800;
}

.afl-activations-section {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.afl-activations-section h4 {
    margin: 0 0 10px 0;
}

.afl-activations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.afl-activations-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.afl-activations-list li:last-child {
    border-bottom: none;
}

.afl-site-url {
    font-weight: 600;
    color: #2563eb;
}

.afl-site-name {
    color: #666;
    font-size: 14px;
}

.afl-activation-date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.afl-license-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.afl-button {
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    text-align: center;
}

.afl-button-primary {
    background: #2563eb;
    color: white;
}

.afl-button-primary:hover {
    background: #1e40af;
    color: white;
}

.afl-button-secondary {
    background: #6b7280;
    color: white;
}

.afl-button-secondary:hover {
    background: #4b5563;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .afl-license-info {
        grid-template-columns: 1fr;
    }
    
    .afl-license-actions {
        flex-direction: column;
    }
    
    .afl-license-key-wrapper {
        flex-direction: column;
    }
}
