/* MAC Address Lookup Plugin - Main Stylesheet */

.mac-lookup-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.mac-lookup-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.mac-lookup-title {
    margin: 0 0 20px 0;
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.mac-lookup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mac-lookup-input-group {
    display: flex;
    gap: 10px;
}

.mac-lookup-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mac-lookup-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mac-lookup-input::placeholder {
    color: #999;
}

.mac-lookup-btn {
    padding: 12px 30px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mac-lookup-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mac-lookup-btn:active:not(:disabled) {
    transform: translateY(0);
}

.mac-lookup-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mac-lookup-hint {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    line-height: 1.4;
}

/* CAPTCHA Styling */
.mac-lookup-captcha-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

.mac-lookup-captcha-section.hidden {
    display: none !important;
}

.captcha-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.captcha-container h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.captcha-question {
    margin-bottom: 12px;
    font-weight: 600;
    color: #555;
    font-size: 16px;
}

.captcha-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 8px;
    font-weight: 500;
}

.captcha-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.captcha-input::placeholder {
    color: #999;
}

.mac-lookup-captcha-section small {
    display: block;
    color: #999;
    font-size: 12px;
}

/* Results, Loading, Error */
.mac-lookup-results,
.mac-lookup-error,
.mac-lookup-loading {
    margin-top: 20px;
}

.hidden {
    display: none !important;
}

.mac-lookup-result-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #f9fafb 100%);
    border-bottom: 1px solid #e0e0e0;
}

.result-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.result-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s ease;
}

.result-close-btn:hover {
    color: #333;
}

.result-content {
    padding: 20px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
    min-width: 140px;
    flex-shrink: 0;
}

.result-value {
    color: #667eea;
    font-weight: 500;
    word-break: break-word;
    text-align: right;
    margin-left: 20px;
}

.result-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.result-note {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* Error Message */
.mac-lookup-error {
    animation: slideIn 0.3s ease;
}

.error-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon {
    font-size: 18px;
    flex-shrink: 0;
}

#error-text {
    flex: 1;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.error-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #856404;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.error-close-btn:hover {
    color: #5a3d00;
}

/* Loading Spinner */
.mac-lookup-loading {
    text-align: center;
    padding: 20px;
    animation: slideIn 0.3s ease;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mac-lookup-loading p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mac-lookup-wrapper {
        padding: 20px;
    }

    .mac-lookup-title {
        font-size: 20px;
    }

    .mac-lookup-input-group {
        flex-direction: column;
    }

    .mac-lookup-btn {
        width: 100%;
    }

    .result-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-label {
        min-width: auto;
        margin-bottom: 5px;
    }

    .result-value {
        margin-left: 0;
        text-align: left;
        width: 100%;
    }

    .result-header {
        padding: 12px 15px;
    }

    .result-content {
        padding: 15px;
    }

    .result-footer {
        padding: 12px 15px;
    }

    .error-message {
        flex-direction: column;
        align-items: flex-start;
    }

    .error-close-btn {
        align-self: flex-end;
        margin-top: -25px;
    }
}

@media (max-width: 480px) {
    .mac-lookup-wrapper {
        padding: 15px;
    }

    .mac-lookup-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .mac-lookup-input {
        font-size: 16px;
    }

    .captcha-input {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .mac-lookup-btn,
    .result-close-btn,
    .error-close-btn,
    .mac-lookup-hint {
        display: none;
    }

    .mac-lookup-result-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
