/* ============================================================
   SMTP SETTINGS MODAL - CSS
   ResiHub AI Platform
   ============================================================ */

/* Modal Overlay */
.smtp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.smtp-modal-overlay.active {
    display: flex;
}

/* Modal Content */
.smtp-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 420px;
    max-width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: smtpModalSlideIn 0.3s ease;
}

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

/* Header */
.smtp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.smtp-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.smtp-modal-header h3 i {
    color: #18b090;
}

.smtp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a0aec0;
    transition: color 0.2s;
}

.smtp-modal-close:hover {
    color: #e53e3e;
}

/* Subtitle */
.smtp-modal-subtitle {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 20px;
}

/* Form Fields */
.smtp-form-group {
    margin-bottom: 16px;
}

.smtp-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 6px;
}

.smtp-form-group input,
.smtp-form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.smtp-form-group input:focus,
.smtp-form-group select:focus {
    outline: none;
    border-color: #18b090;
    box-shadow: 0 0 0 3px rgba(24, 176, 144, 0.1);
}

/* Checkbox */
.smtp-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.smtp-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #18b090;
}

.smtp-checkbox-group label {
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0;
}

/* Buttons */
.smtp-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.smtp-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.smtp-btn-primary {
    background: linear-gradient(135deg, #18b090, #0d4c65);
    color: #fff;
}

.smtp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 176, 144, 0.3);
}

.smtp-btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.smtp-btn-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.smtp-btn-secondary:hover {
    background: #e2e8f0;
}

.smtp-btn-test {
    background: #ebf8ff;
    color: #3182ce;
    border: 1px solid #3182ce;
}

.smtp-btn-test:hover {
    background: #bee3f8;
}

/* Message */
#smtp-message {
    display: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Footer Note */
.smtp-footer-note {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
    font-size: 0.8rem;
    color: #a0aec0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.smtp-footer-note i {
    color: #48bb78;
}

/* Row Layout */
.smtp-row {
    display: flex;
    gap: 12px;
}

.smtp-row .smtp-form-group {
    flex: 1;
}

.smtp-row .smtp-form-group.small {
    flex: 0 0 100px;
}
