/* EDD License Checker Styles */
.edd-license-checker-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.edd-license-checker-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input[type="email"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.edd-license-check-btn {
    width: 100%;
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edd-license-check-btn:hover {
    background: #005a87;
}

.edd-license-check-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Result Messages */
.edd-license-result {
    margin-top: 20px;
}

.edd-license-message {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}

.edd-license-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.edd-license-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.edd-license-message.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    text-align: center;
}

/* Customer Information */
.edd-customer-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.edd-customer-info h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.edd-customer-info p {
    margin: 8px 0;
    color: #555;
}

/* Licenses List */
.edd-licenses-list {
    margin-top: 20px;
}

.edd-licenses-list h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 10px;
}

.edd-license-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.edd-license-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.edd-license-item.active {
    border-left: 4px solid #28a745;
}

.edd-license-item.inactive {
    border-left: 4px solid #dc3545;
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.license-header h5 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.license-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.license-status.active {
    background: #d4edda;
    color: #155724;
}

.license-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.license-details {
    margin-bottom: 15px;
}

.license-details p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.license-details code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e83e8c;
}

.license-sites {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-top: 1px solid #e1e5e9;
}

.license-sites strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.license-sites ul {
    margin: 0;
    padding-left: 20px;
}

.license-sites li {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .edd-license-checker-form {
        margin: 10px;
        padding: 15px;
    }
    
    .license-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .license-header h5 {
        margin-bottom: 10px;
    }
    
    .license-status {
        align-self: flex-start;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.edd-license-message.loading::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #0c5460;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Admin Styles */
.wrap .edd-license-checker-admin {
    max-width: 1200px;
    margin: 20px 0;
}

.wrap .edd-license-checker-admin h2 {
    color: #23282d;
    margin-bottom: 20px;
}

.wrap .edd-license-checker-admin .form-table th {
    width: 200px;
}

.wrap .edd-license-checker-admin .form-table td {
    padding: 15px 10px;
}

.wrap .edd-license-checker-admin input[type="text"],
.wrap .edd-license-checker-admin input[type="email"] {
    width: 400px;
}

.wrap .edd-license-checker-admin .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
} 