/**
 * License Server Pro - Frontend Styles
 */

/* License Widget Styles */
.lsp-license-widget {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lsp-license-widget h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.lsp-license-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lsp-form-group {
    display: flex;
    flex-direction: column;
}

.lsp-form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.lsp-form-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.lsp-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.lsp-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.lsp-btn:hover {
    background: #005a87;
}

.lsp-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* License Status Display */
.lsp-license-status {
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.lsp-license-status.valid {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.lsp-license-status.invalid {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.lsp-license-status.expired {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.lsp-license-info {
    margin-top: 10px;
    font-size: 13px;
}

.lsp-license-info strong {
    display: inline-block;
    min-width: 100px;
}

/* Loading Spinner */
.lsp-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: lsp-spin 1s linear infinite;
}

@keyframes lsp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lsp-license-widget {
        padding: 15px;
        margin: 15px 0;
    }
    
    .lsp-form-group input {
        padding: 8px;
    }
    
    .lsp-btn {
        padding: 10px 16px;
    }
}

/* Error Messages */
.lsp-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
}

.lsp-success {
    color: #28a745;
    font-size: 13px;
    margin-top: 5px;
}

/* License Activation Widget */
.lsp-activation-widget {
    max-width: 500px;
    margin: 0 auto;
}

.lsp-activation-steps {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.lsp-activation-steps li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.lsp-activation-steps li:last-child {
    border-bottom: none;
}

.lsp-activation-steps .step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #0073aa;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    margin-right: 10px;
}

/* License Details Table */
.lsp-license-details {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.lsp-license-details th,
.lsp-license-details td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.lsp-license-details th {
    background: #f8f9fa;
    font-weight: 600;
    width: 30%;
}

/* Shortcode Styles */
.lsp-shortcode-wrapper {
    margin: 20px 0;
}

.lsp-shortcode-wrapper .lsp-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* License Key Display */
.lsp-license-key {
    font-family: monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    word-break: break-all;
    font-size: 14px;
}

/* Copy Button */
.lsp-copy-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
}

.lsp-copy-btn:hover {
    background: #5a6268;
}

/* Activation Limit Display */
.lsp-activation-limit {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.lsp-activation-limit.warning {
    color: #856404;
}

.lsp-activation-limit.danger {
    color: #721c24;
}

/* Domain List */
.lsp-domain-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.lsp-domain-list li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lsp-domain-list li:last-child {
    border-bottom: none;
}

.lsp-domain-list .domain-url {
    font-family: monospace;
    font-size: 13px;
}

.lsp-domain-list .domain-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
}

.lsp-domain-list .domain-status.active {
    background: #d4edda;
    color: #155724;
}

.lsp-domain-list .domain-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Tooltips */
.lsp-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.lsp-tooltip .lsp-tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.lsp-tooltip .lsp-tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.lsp-tooltip:hover .lsp-tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Progress Bar */
.lsp-progress {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.lsp-progress-bar {
    height: 100%;
    background-color: #0073aa;
    transition: width 0.3s ease;
}

/* Notification Styles */
.lsp-notification {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 15px 0;
    border-left: 4px solid;
}

.lsp-notification.info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.lsp-notification.success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.lsp-notification.warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.lsp-notification.error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

/* Card Layout */
.lsp-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 20px;
}

.lsp-card-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.lsp-card-body {
    padding: 16px;
}

.lsp-card-footer {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 13px;
    color: #666;
}

/* Responsive Tables */
.lsp-table-responsive {
    overflow-x: auto;
}

.lsp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.lsp-table th,
.lsp-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.lsp-table th {
    background: #f8f9fa;
    font-weight: 600;
}

@media (max-width: 768px) {
    .lsp-table {
        font-size: 14px;
    }
    
    .lsp-table th,
    .lsp-table td {
        padding: 6px 8px;
    }
}
