/* Frontend Styles for WHOIS Analyzer Widget */
.bytenex-whois-widget {
    max-width: 100%;
    margin: 0 auto;
}

.bytenex-whois-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.bytenex-whois-description {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.bytenex-whois-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e1e1e1;
}

.bytenex-form-group {
    margin-bottom: 20px;
}

.bytenex-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.bytenex-form-group input[type="email"],
.bytenex-form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.bytenex-form-group input[type="email"]:focus,
.bytenex-form-group input[type="text"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.bytenex-analyze-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.bytenex-analyze-btn:hover {
    background-color: #005a87;
}

.bytenex-analyze-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.bytenex-loading {
    text-align: center;
    padding: 30px;
    background: #f0f6fc;
    border-radius: 5px;
    margin-top: 20px;
}

.bytenex-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: bytenex-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes bytenex-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bytenex-results-container {
    margin-top: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #e1e1e1;
}

.bytenex-results-container h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.bytenex-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    border: 1px solid #f5c6cb;
}

/* Results Styling */
.bytenex-results-content .whois-section {
    margin-bottom: 25px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
}

.bytenex-results-content .whois-section h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.bytenex-results-content .whois-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.bytenex-results-content .whois-table th,
.bytenex-results-content .whois-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.bytenex-results-content .whois-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 35%;
}

.bytenex-results-content .dns-record {
    background: #f8f9fa;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.bytenex-results-content .dns-record-type {
    font-weight: 600;
    color: #007cba;
    margin-bottom: 8px;
    font-size: 14px;
}

.bytenex-results-content .ip-location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bytenex-whois-form {
        padding: 20px;
    }
    
    .bytenex-results-content .ip-location {
        grid-template-columns: 1fr;
    }
    
    .bytenex-results-content .whois-table th {
        width: 40%;
    }
}

/* Elementor Integration */
.elementor-widget-bytenex_whois_analyzer .bytenex-whois-widget {
    width: 100%;
}

/* Shortcode Styling */
.bytenex-whois-shortcode {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    margin: 20px 0;
}

.bytenex-whois-shortcode h4 {
    margin-top: 0;
    color: #333;
}

.bytenex-whois-shortcode .whois-table {
    width: 100%;
    border-collapse: collapse;
}

.bytenex-whois-shortcode .whois-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
}

.bytenex-whois-shortcode .whois-table td:first-child {
    width: 30%;
    background-color: #f0f0f0;
}