/* SMTP Tester Frontend Styles */

.smtp-tester-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.smtp-tester-title {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
}

.smtp-tester-description {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

.smtp-tester-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.smtp-tester-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.smtp-tester-field {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.smtp-tester-field-full {
    flex: 1 1 100%;
}

.smtp-tester-field label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.smtp-tester-field input,
.smtp-tester-field select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.smtp-tester-field input:focus,
.smtp-tester-field select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.smtp-tester-field input[type="password"] {
    font-family: monospace;
}

.smtp-tester-submit {
    text-align: center;
    margin-top: 20px;
}

.smtp-tester-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px;
}

.smtp-tester-button:hover {
    background: #005a87;
}

.smtp-tester-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.smtp-tester-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 600;
}

.smtp-tester-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.smtp-tester-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.smtp-tester-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: smtp-tester-spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .smtp-tester-container {
        padding: 15px;
        margin: 10px;
    }
    
    .smtp-tester-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .smtp-tester-field {
        min-width: auto;
    }
    
    .smtp-tester-title {
        font-size: 20px;
    }
    
    .smtp-tester-button {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .smtp-tester-container {
        padding: 10px;
        margin: 5px;
    }
    
    .smtp-tester-field input,
    .smtp-tester-field select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Form validation styles */
.smtp-tester-field input:invalid {
    border-color: #dc3545;
}

.smtp-tester-field input:valid {
    border-color: #28a745;
}

/* Focus styles for accessibility */
.smtp-tester-button:focus,
.smtp-tester-field input:focus,
.smtp-tester-field select:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .smtp-tester-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .smtp-tester-button {
        display: none;
    }
}

